Enum wasmparser::ParserState
source · 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
EndSection
SkippingSection
ReadingCustomSection(CustomSectionKind)
ReadingSectionRawData
SectionRawData(&'a [u8])
TypeSectionEntry(FuncType)
ImportSectionEntry
FunctionSectionEntry(u32)
TableSectionEntry(TableType)
MemorySectionEntry(MemoryType)
ExportSectionEntry
NameSectionEntry(NameEntry<'a>)
StartSectionEntry(u32)
BeginInitExpressionBody
InitExpressionOperator(Operator<'a>)
EndInitExpressionBody
BeginFunctionBody
Fields
range: Range
FunctionBodyLocals
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParserState<'a>
impl<'a> Send for ParserState<'a>
impl<'a> Sync for ParserState<'a>
impl<'a> Unpin for ParserState<'a>
impl<'a> UnwindSafe for ParserState<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more