pub enum ParserState<'a> {
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 str,
field: &'a str,
ty: ImportSectionEntryType,
},
FunctionSectionEntry(u32),
TableSectionEntry(TableType),
MemorySectionEntry(MemoryType),
ExportSectionEntry {
field: &'a str,
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 str),
}
Fields of BeginWasm
Fields of BeginSection
Fields of ImportSectionEntry
Fields of ExportSectionEntry
BeginInitExpressionBody
EndInitExpressionBody
BeginFunctionBody
Fields of BeginFunctionBody
FunctionBodyLocals
Fields of FunctionBodyLocals
EndFunctionBody
SkippingFunctionBody
ElementSectionEntryBody(Box<[u32]>)
BeginDataSectionEntryBody(u32)
DataSectionEntryBodyChunk(&'a [u8])
EndDataSectionEntryBody
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static