Trait wasmtime_environ::wasm::wasmparser::SectionReader[][src]

pub trait SectionReader {
    type Item;
    fn read(&mut self) -> Result<Self::Item, BinaryReaderError>;
fn eof(&self) -> bool;
fn original_position(&self) -> usize;
fn range(&self) -> Range; fn ensure_end(&self) -> Result<(), BinaryReaderError> { ... } }

Associated Types

Required methods

fn read(&mut self) -> Result<Self::Item, BinaryReaderError>[src]

fn eof(&self) -> bool[src]

fn original_position(&self) -> usize[src]

fn range(&self) -> Range[src]

Provided methods

Implementors

impl<'a> SectionReader for AliasSectionReader<'a>[src]

type Item = Alias<'a>

pub fn read(
    &mut self
) -> Result<<AliasSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for CodeSectionReader<'a>[src]

type Item = FunctionBody<'a>

pub fn read(
    &mut self
) -> Result<<CodeSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for DataSectionReader<'a>[src]

type Item = Data<'a>

pub fn read(
    &mut self
) -> Result<<DataSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for ElementSectionReader<'a>[src]

type Item = Element<'a>

pub fn read(
    &mut self
) -> Result<<ElementSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for EventSectionReader<'a>[src]

type Item = EventType

pub fn read(
    &mut self
) -> Result<<EventSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for ExportSectionReader<'a>[src]

type Item = Export<'a>

pub fn read(
    &mut self
) -> Result<<ExportSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for FunctionSectionReader<'a>[src]

type Item = u32

pub fn read(
    &mut self
) -> Result<<FunctionSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for GlobalSectionReader<'a>[src]

type Item = Global<'a>

pub fn read(
    &mut self
) -> Result<<GlobalSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for ImportSectionReader<'a>[src]

type Item = Import<'a>

pub fn read(
    &mut self
) -> Result<<ImportSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for InstanceArgsReader<'a>[src]

type Item = InstanceArg<'a>

pub fn read(
    &mut self
) -> Result<<InstanceArgsReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for InstanceSectionReader<'a>[src]

type Item = Instance<'a>

pub fn read(
    &mut self
) -> Result<<InstanceSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for LinkingSectionReader<'a>[src]

type Item = LinkingType

pub fn read(
    &mut self
) -> Result<<LinkingSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for MemorySectionReader<'a>[src]

type Item = MemoryType

pub fn read(
    &mut self
) -> Result<<MemorySectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for ModuleSectionReader<'a>[src]

type Item = NestedModule<'a>

pub fn read(
    &mut self
) -> Result<<ModuleSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for NameSectionReader<'a>[src]

type Item = Name<'a>

pub fn read(
    &mut self
) -> Result<<NameSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for ProducersSectionReader<'a>[src]

type Item = ProducersField<'a>

pub fn read(
    &mut self
) -> Result<<ProducersSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for RelocSectionReader<'a>[src]

type Item = Reloc

pub fn read(
    &mut self
) -> Result<<RelocSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for TableSectionReader<'a>[src]

type Item = TableType

pub fn read(
    &mut self
) -> Result<<TableSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]

impl<'a> SectionReader for TypeSectionReader<'a>[src]

type Item = TypeDef<'a>

pub fn read(
    &mut self
) -> Result<<TypeSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
[src]

pub fn eof(&self) -> bool[src]

pub fn original_position(&self) -> usize[src]

pub fn range(&self) -> Range[src]