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