pub enum ParserState<'a> {
Error(&'a str),
Initial,
BeginWasm(u32, u32),
EndWasm,
BeginSection(SectionCode<'a>),
EndSection,
SkippingSection,
ReadingSectionRawData,
SectionRawData,
TypeSectionEnty(FuncType),
ImportSectionEntry(&'a [u8], &'a [u8], ImportSectionEntryType),
FunctionSectionEnty(u32),
TableSectionEntry(TableType),
MemorySectionEntry(MemoryType),
GlobalSectionEntry,
ExportSectionEntry(&'a [u8], ExternalKind, u32),
DataSectionEntry,
NameSectionEntry(NameEntry<'a>),
StartSectionEntry(u32),
LinkingSectionEntry,
BeginInitExpressionBody,
InitExpressionOperator(Operator),
EndInitExpressionBody,
BeginFunctionBody(Vec<(u32, Type)>),
CodeOperator(Operator),
EndFunctionBody,
SkippingFunctionBody,
BeginElementSectionEntry(u32),
ElementSectionEntryBody(Vec<u32>),
EndElementSectionEntry,
BeginDataSectionEntry(u32),
DataSectionEntryBody(&'a [u8]),
EndDataSectionEntry,
BeginGlobalSectionEntry(GlobalType),
EndGlobalSectionEntry,
SourceMappingURL(&'a [u8]),
}
Variants
Error(&'a str)
Initial
BeginWasm(u32, u32)
EndWasm
BeginSection(SectionCode<'a>)
EndSection
SkippingSection
ReadingSectionRawData
SectionRawData
TypeSectionEnty(FuncType)
ImportSectionEntry(&'a [u8], &'a [u8], ImportSectionEntryType)
FunctionSectionEnty(u32)
TableSectionEntry(TableType)
MemorySectionEntry(MemoryType)
GlobalSectionEntry
ExportSectionEntry(&'a [u8], ExternalKind, u32)
DataSectionEntry
NameSectionEntry(NameEntry<'a>)
StartSectionEntry(u32)
LinkingSectionEntry
BeginInitExpressionBody
InitExpressionOperator(Operator)
EndInitExpressionBody
BeginFunctionBody(Vec<(u32, Type)>)
CodeOperator(Operator)
EndFunctionBody
SkippingFunctionBody
BeginElementSectionEntry(u32)
ElementSectionEntryBody(Vec<u32>)
EndElementSectionEntry
BeginDataSectionEntry(u32)
DataSectionEntryBody(&'a [u8])
EndDataSectionEntry
BeginGlobalSectionEntry(GlobalType)
EndGlobalSectionEntry
SourceMappingURL(&'a [u8])
Trait Implementations
Formats the value using the given formatter.