Struct wasmparser::RelocSectionReader
source · pub struct RelocSectionReader<'a> { /* private fields */ }
Expand description
A reader for the relocations custom section of a WebAssembly module.
Implementations§
source§impl<'a> RelocSectionReader<'a>
impl<'a> RelocSectionReader<'a>
sourcepub fn new(data: &'a [u8], offset: usize) -> Result<RelocSectionReader<'a>>
pub fn new(data: &'a [u8], offset: usize) -> Result<RelocSectionReader<'a>>
Constructs a new RelocSectionReader
for the given data and offset.
sourcepub fn get_section_code<'b>(&self) -> SectionCode<'b>where
'a: 'b,
pub fn get_section_code<'b>(&self) -> SectionCode<'b>where 'a: 'b,
Gets the section code from the section.
sourcepub fn original_position(&self) -> usize
pub fn original_position(&self) -> usize
Gets the original position of the reader.
Trait Implementations§
source§impl<'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?
source§impl<'a> SectionReader for RelocSectionReader<'a>
impl<'a> SectionReader for RelocSectionReader<'a>
source§fn original_position(&self) -> usize
fn original_position(&self) -> usize
Gets the original position of the reader.
source§impl<'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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more