Struct wasmparser::IndirectNameMap
source · pub struct IndirectNameMap<'a> { /* private fields */ }
Expand description
Represents a reader for indirect names from the names custom section.
Trait Implementations
sourceimpl<'a> Clone for IndirectNameMap<'a>
impl<'a> Clone for IndirectNameMap<'a>
sourcefn clone(&self) -> IndirectNameMap<'a>
fn clone(&self) -> IndirectNameMap<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> IntoIterator for IndirectNameMap<'a>
impl<'a> IntoIterator for IndirectNameMap<'a>
type Item = Result<IndirectNaming<'a>, BinaryReaderError>
type Item = Result<IndirectNaming<'a>, BinaryReaderError>
The type of the elements being iterated over.
type IntoIter = SectionIteratorLimited<IndirectNameMap<'a>>
type IntoIter = SectionIteratorLimited<IndirectNameMap<'a>>
Which kind of iterator are we turning this into?
sourceimpl<'a> SectionReader for IndirectNameMap<'a>
impl<'a> SectionReader for IndirectNameMap<'a>
type Item = IndirectNaming<'a>
type Item = IndirectNaming<'a>
The item returned by the reader.
sourcefn read(&mut self) -> Result<IndirectNaming<'a>>
fn read(&mut self) -> Result<IndirectNaming<'a>>
Reads an item from the section.
sourcefn original_position(&self) -> usize
fn original_position(&self) -> usize
Gets the original position of the reader.
sourcefn ensure_end(&self) -> Result<()>
fn ensure_end(&self) -> Result<()>
Ensures the reader is at the end of the section. Read more
sourceimpl SectionWithLimitedItems for IndirectNameMap<'_>
impl SectionWithLimitedItems for IndirectNameMap<'_>
sourcefn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self>ⓘNotable traits for IntoIterWithOffsets<R>impl<R> Iterator for IntoIterWithOffsets<R>where
R: SectionWithLimitedItems, type Item = Result<(usize, R::Item)>;
where
Self: Sized,
fn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self>ⓘNotable traits for IntoIterWithOffsets<R>impl<R> Iterator for IntoIterWithOffsets<R>where
R: SectionWithLimitedItems, type Item = Result<(usize, R::Item)>;
where
Self: Sized,
R: SectionWithLimitedItems, type Item = Result<(usize, R::Item)>;
Returns an iterator over the items within this section where the offset
in the original section is provided with the item. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for IndirectNameMap<'a>
impl<'a> Send for IndirectNameMap<'a>
impl<'a> Sync for IndirectNameMap<'a>
impl<'a> Unpin for IndirectNameMap<'a>
impl<'a> UnwindSafe for IndirectNameMap<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more