pub enum ParserState<'a> {
Show 40 variants Error(BinaryReaderError), Initial, BeginWasm { version: u32, }, EndWasm, BeginSection { code: SectionCode<'a>, range: Range, }, EndSection, SkippingSection, ReadingCustomSection(CustomSectionKind), ReadingSectionRawData, SectionRawData(&'a [u8]), TypeSectionEntry(FuncType), ImportSectionEntry { module: &'a [u8], field: &'a [u8], ty: ImportSectionEntryType, }, FunctionSectionEntry(u32), TableSectionEntry(TableType), MemorySectionEntry(MemoryType), ExportSectionEntry { field: &'a [u8], kind: ExternalKind, index: u32, }, NameSectionEntry(NameEntry<'a>), StartSectionEntry(u32), BeginInitExpressionBody, InitExpressionOperator(Operator<'a>), EndInitExpressionBody, BeginFunctionBody { range: Range, }, FunctionBodyLocals { locals: Box<[(u32, Type)]>, }, CodeOperator(Operator<'a>), EndFunctionBody, SkippingFunctionBody, BeginElementSectionEntry(u32), ElementSectionEntryBody(Box<[u32]>), EndElementSectionEntry, BeginDataSectionEntry(u32), EndDataSectionEntry, BeginDataSectionEntryBody(u32), DataSectionEntryBodyChunk(&'a [u8]), EndDataSectionEntryBody, BeginGlobalSectionEntry(GlobalType), EndGlobalSectionEntry, RelocSectionHeader(SectionCode<'a>), RelocSectionEntry(RelocEntry), LinkingSectionEntry(LinkingType), SourceMappingURL(&'a [u8]),
}

Variants

Error(BinaryReaderError)

Initial

BeginWasm

Fields

version: u32

EndWasm

BeginSection

Fields

code: SectionCode<'a>
range: Range

EndSection

SkippingSection

ReadingCustomSection(CustomSectionKind)

ReadingSectionRawData

SectionRawData(&'a [u8])

TypeSectionEntry(FuncType)

ImportSectionEntry

Fields

module: &'a [u8]
field: &'a [u8]

FunctionSectionEntry(u32)

TableSectionEntry(TableType)

MemorySectionEntry(MemoryType)

ExportSectionEntry

Fields

field: &'a [u8]
index: u32

NameSectionEntry(NameEntry<'a>)

StartSectionEntry(u32)

BeginInitExpressionBody

InitExpressionOperator(Operator<'a>)

EndInitExpressionBody

BeginFunctionBody

Fields

range: Range

FunctionBodyLocals

Fields

locals: Box<[(u32, Type)]>

CodeOperator(Operator<'a>)

EndFunctionBody

SkippingFunctionBody

BeginElementSectionEntry(u32)

ElementSectionEntryBody(Box<[u32]>)

EndElementSectionEntry

BeginDataSectionEntry(u32)

EndDataSectionEntry

BeginDataSectionEntryBody(u32)

DataSectionEntryBodyChunk(&'a [u8])

EndDataSectionEntryBody

BeginGlobalSectionEntry(GlobalType)

EndGlobalSectionEntry

RelocSectionHeader(SectionCode<'a>)

RelocSectionEntry(RelocEntry)

LinkingSectionEntry(LinkingType)

SourceMappingURL(&'a [u8])

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.