Struct holochain_wasmer_host::prelude::wasmparser::ModuleSectionReader [−]
pub struct ModuleSectionReader<'a> { /* fields omitted */ }
Implementations
impl<'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 read(&mut self) -> Result<NestedModule<'a>, BinaryReaderError>
Trait Implementations
impl<'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?
pub fn into_iter(self) -> <ModuleSectionReader<'a> as IntoIterator>::IntoIter
pub fn into_iter(self) -> <ModuleSectionReader<'a> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
impl<'a> SectionReader for ModuleSectionReader<'a>
impl<'a> SectionReader for ModuleSectionReader<'a>
type Item = NestedModule<'a>
pub fn read(
&mut self
) -> Result<<ModuleSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
pub fn original_position(&self) -> usize
fn ensure_end(&self) -> Result<(), BinaryReaderError>
impl<'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
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more