pub trait SectionReader {
    type Item;

    // Required methods
    fn read(&mut self) -> Result<Self::Item>;
    fn eof(&self) -> bool;
    fn original_position(&self) -> usize;
    fn range(&self) -> Range;

    // Provided method
    fn ensure_end(&self) -> Result<()> { ... }
}

Required Associated Types§

Required Methods§

source

fn read(&mut self) -> Result<Self::Item>

source

fn eof(&self) -> bool

source

fn original_position(&self) -> usize

source

fn range(&self) -> Range

Provided Methods§

source

fn ensure_end(&self) -> Result<()>

Implementors§

source§

impl<'a> SectionReader for AliasSectionReader<'a>

§

type Item = Alias<'a>

source§

impl<'a> SectionReader for CodeSectionReader<'a>

§

type Item = FunctionBody<'a>

source§

impl<'a> SectionReader for DataSectionReader<'a>

§

type Item = Data<'a>

source§

impl<'a> SectionReader for ElementSectionReader<'a>

§

type Item = Element<'a>

source§

impl<'a> SectionReader for EventSectionReader<'a>

source§

impl<'a> SectionReader for ExportSectionReader<'a>

§

type Item = Export<'a>

source§

impl<'a> SectionReader for FunctionSectionReader<'a>

§

type Item = u32

source§

impl<'a> SectionReader for GlobalSectionReader<'a>

§

type Item = Global<'a>

source§

impl<'a> SectionReader for ImportSectionReader<'a>

§

type Item = Import<'a>

source§

impl<'a> SectionReader for InstanceArgsReader<'a>

§

type Item = InstanceArg<'a>

source§

impl<'a> SectionReader for InstanceSectionReader<'a>

§

type Item = Instance<'a>

source§

impl<'a> SectionReader for LinkingSectionReader<'a>

source§

impl<'a> SectionReader for MemorySectionReader<'a>

source§

impl<'a> SectionReader for ModuleSectionReader<'a>

§

type Item = NestedModule<'a>

source§

impl<'a> SectionReader for NameSectionReader<'a>

§

type Item = Name<'a>

source§

impl<'a> SectionReader for ProducersSectionReader<'a>

source§

impl<'a> SectionReader for RelocSectionReader<'a>

§

type Item = Reloc

source§

impl<'a> SectionReader for TableSectionReader<'a>

source§

impl<'a> SectionReader for TypeSectionReader<'a>

§

type Item = TypeDef<'a>