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