Enum wasmparser::ParserState[][src]

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 [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: Vec<(u32, Type)>,
    },
    CodeOperator(Operator<'a>),
    EndFunctionBody,
    SkippingFunctionBody,
    BeginElementSectionEntry(u32),
    ElementSectionEntryBody(Vec<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

Fields of BeginWasm

Fields of BeginSection

Fields of ImportSectionEntry

Fields of ExportSectionEntry

Fields of BeginFunctionBody

Fields of FunctionBodyLocals

Trait Implementations

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for ParserState<'a>

impl<'a> Sync for ParserState<'a>