Enum wasmparser::ParserState [] [src]

pub enum ParserState<'a> {
    Error(&'a str),
    Initial,
    BeginWasm {
        magic_number: u32,
        version: u32,
    },
    EndWasm,
    BeginSection(SectionCode<'a>),
    EndSection,
    SkippingSection,
    ReadingSectionRawData,
    SectionRawData,
    TypeSectionEnty(FuncType),
    ImportSectionEntry {
        module: &'a [u8],
        field: &'a [u8],
        ty: ImportSectionEntryType,
    },
    FunctionSectionEnty(u32),
    TableSectionEntry(TableType),
    MemorySectionEntry(MemoryType),
    GlobalSectionEntry,
    ExportSectionEntry {
        field: &'a [u8],
        kind: ExternalKind,
        index: u32,
    },
    DataSectionEntry,
    NameSectionEntry(NameEntry<'a>),
    StartSectionEntry(u32),
    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,
    RelocSectionHeader(SectionCode<'a>),
    RelocSectionEntry(RelocEntry),
    LinkingSectionEntry(LinkingType),
    SourceMappingURL(&'a [u8]),
}

Variants

Fields of BeginWasm

Fields of ImportSectionEntry

Fields of ExportSectionEntry

Trait Implementations

impl<'a> Debug for ParserState<'a>
[src]

Formats the value using the given formatter.