Trait wasmtime_environ::wasm::wasmparser::SectionReader [−][src]
Associated Types
Loading content...Required methods
pub fn read(&mut self) -> Result<Self::Item, BinaryReaderError>[src]
pub fn eof(&self) -> bool[src]
pub fn original_position(&self) -> usize[src]
pub fn range(&self) -> Range[src]
Provided methods
pub fn ensure_end(&self) -> Result<(), BinaryReaderError>[src]
Implementors
impl<'a> SectionReader for AliasSectionReader<'a>[src]
type Item = Alias
pub fn read(
&mut self
) -> Result<<AliasSectionReader<'a> as SectionReader>::Item, BinaryReaderError>[src]
&mut self
) -> Result<<AliasSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<CodeSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<DataSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<ElementSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<EventSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<ExportSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<FunctionSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<GlobalSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<ImportSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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 = (ExternalKind, u32)
pub fn read(
&mut self
) -> Result<<InstanceArgsReader<'a> as SectionReader>::Item, BinaryReaderError>[src]
&mut self
) -> Result<<InstanceArgsReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<InstanceSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<LinkingSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<MemorySectionReader<'a> as SectionReader>::Item, BinaryReaderError>
pub fn eof(&self) -> bool[src]
pub fn original_position(&self) -> usize[src]
pub fn range(&self) -> Range[src]
impl<'a> SectionReader for ModuleCodeSectionReader<'a>[src]
type Item = ModuleCode<'a>
pub fn read(
&mut self
) -> Result<<ModuleCodeSectionReader<'a> as SectionReader>::Item, BinaryReaderError>[src]
&mut self
) -> Result<<ModuleCodeSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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 = u32
pub fn read(
&mut self
) -> Result<<ModuleSectionReader<'a> as SectionReader>::Item, BinaryReaderError>[src]
&mut self
) -> Result<<ModuleSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<NameSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<ProducersSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<RelocSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<TableSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
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]
&mut self
) -> Result<<TypeSectionReader<'a> as SectionReader>::Item, BinaryReaderError>