Struct wasmtime_environ::wasm::wasmparser::RelocSectionReader
source · [−]pub struct RelocSectionReader<'a> { /* private fields */ }
Implementations
sourceimpl<'a> RelocSectionReader<'a>
impl<'a> RelocSectionReader<'a>
pub fn new(
data: &'a [u8],
offset: usize
) -> Result<RelocSectionReader<'a>, BinaryReaderError>
pub fn get_count(&self) -> u32
pub fn get_section_code<'b>(&self) -> SectionCode<'b> where
'a: 'b,
pub fn original_position(&self) -> usize
pub fn read(&mut self) -> Result<Reloc, BinaryReaderError>
Trait Implementations
sourceimpl<'a> IntoIterator for RelocSectionReader<'a>
impl<'a> IntoIterator for RelocSectionReader<'a>
type Item = Result<Reloc, BinaryReaderError>
type Item = Result<Reloc, BinaryReaderError>
The type of the elements being iterated over.
type IntoIter = SectionIteratorLimited<RelocSectionReader<'a>>
type IntoIter = SectionIteratorLimited<RelocSectionReader<'a>>
Which kind of iterator are we turning this into?
sourcepub fn into_iter(self) -> <RelocSectionReader<'a> as IntoIterator>::IntoIter
pub fn into_iter(self) -> <RelocSectionReader<'a> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl<'a> SectionReader for RelocSectionReader<'a>
impl<'a> SectionReader for RelocSectionReader<'a>
type Item = Reloc
pub fn read(
&mut self
) -> Result<<RelocSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
pub fn eof(&self) -> bool
pub fn original_position(&self) -> usize
pub fn range(&self) -> Range
fn ensure_end(&self) -> Result<(), BinaryReaderError>
sourceimpl<'a> SectionWithLimitedItems for RelocSectionReader<'a>
impl<'a> SectionWithLimitedItems for RelocSectionReader<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RelocSectionReader<'a>
impl<'a> Send for RelocSectionReader<'a>
impl<'a> Sync for RelocSectionReader<'a>
impl<'a> Unpin for RelocSectionReader<'a>
impl<'a> UnwindSafe for RelocSectionReader<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more