pub enum ParserState<'a> {
Error(&'a str),
Initial,
BeginWasm {
version: u32,
},
EndWasm,
BeginSection {
code: SectionCode<'a>,
range: Range,
},
EndSection,
SkippingSection,
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),
EndInitExpressionBody,
BeginFunctionBody {
locals: Vec<(u32, Type)>,
range: Range,
},
CodeOperator(Operator),
EndFunctionBody,
SkippingFunctionBody,
BeginElementSectionEntry(u32),
ElementSectionEntryBody(Vec<u32>),
EndElementSectionEntry,
BeginDataSectionEntry(u32),
DataSectionEntryBody(&'a [u8]),
EndDataSectionEntry,
BeginGlobalSectionEntry(GlobalType),
EndGlobalSectionEntry,
RelocSectionHeader(SectionCode<'a>),
RelocSectionEntry(RelocEntry),
LinkingSectionEntry(LinkingType),
SourceMappingURL(&'a [u8]),
}
Variants
Error(&'a str)
Initial
BeginWasm
Fields of BeginWasm
EndWasm
BeginSection
Fields of BeginSection
EndSection
SkippingSection
ReadingSectionRawData
SectionRawData(&'a [u8])
TypeSectionEntry(FuncType)
ImportSectionEntry
Fields of ImportSectionEntry
FunctionSectionEntry(u32)
TableSectionEntry(TableType)
MemorySectionEntry(MemoryType)
ExportSectionEntry
Fields of ExportSectionEntry
NameSectionEntry(NameEntry<'a>)
StartSectionEntry(u32)
BeginInitExpressionBody
InitExpressionOperator(Operator)
EndInitExpressionBody
BeginFunctionBody
Fields of BeginFunctionBody
CodeOperator(Operator)
EndFunctionBody
SkippingFunctionBody
BeginElementSectionEntry(u32)
ElementSectionEntryBody(Vec<u32>)
EndElementSectionEntry
BeginDataSectionEntry(u32)
DataSectionEntryBody(&'a [u8])
EndDataSectionEntry
BeginGlobalSectionEntry(GlobalType)
EndGlobalSectionEntry
RelocSectionEntry(RelocEntry)
LinkingSectionEntry(LinkingType)
SourceMappingURL(&'a [u8])
Trait Implementations
Formats the value using the given formatter.