[][src]Enum wasmparser::ParserState

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 str,
        field: &'a str,
        ty: ImportSectionEntryType,
    },
    FunctionSectionEntry(u32),
    TableSectionEntry(TableType),
    MemorySectionEntry(MemoryType),
    ExportSectionEntry {
        field: &'a str,
        kind: ExternalKind,
        index: u32,
    },
    NameSectionEntry(NameEntry<'a>),
    StartSectionEntry(u32),
    DataCountSectionEntry(u32),
    BeginInitExpressionBody,
    InitExpressionOperator(Operator<'a>),
    EndInitExpressionBody,
    BeginFunctionBody {
        range: Range,
    },
    FunctionBodyLocals {
        locals: Box<[(u32, Type)]>,
    },
    CodeOperator(Operator<'a>),
    EndFunctionBody,
    SkippingFunctionBody,
    BeginPassiveElementSectionEntry(Type),
    BeginActiveElementSectionEntry(u32),
    ElementSectionEntryBody(Box<[u32]>),
    EndElementSectionEntry,
    BeginPassiveDataSectionEntry,
    BeginActiveDataSectionEntry(u32),
    EndDataSectionEntry,
    BeginDataSectionEntryBody(u32),
    DataSectionEntryBodyChunk(&'a [u8]),
    EndDataSectionEntryBody,
    BeginGlobalSectionEntry(GlobalType),
    EndGlobalSectionEntry,
    RelocSectionHeader(SectionCode<'a>),
    RelocSectionEntry(RelocEntry),
    LinkingSectionEntry(LinkingType),
    SourceMappingURL(&'a str),
}

Variants

Error(BinaryReaderError)InitialBeginWasm

Fields of BeginWasm

version: u32
EndWasmBeginSection

Fields of BeginSection

code: SectionCode<'a>range: Range
EndSectionSkippingSectionReadingCustomSection(CustomSectionKind)ReadingSectionRawDataSectionRawData(&'a [u8])TypeSectionEntry(FuncType)ImportSectionEntry

Fields of ImportSectionEntry

module: &'a strfield: &'a strty: ImportSectionEntryType
FunctionSectionEntry(u32)TableSectionEntry(TableType)MemorySectionEntry(MemoryType)ExportSectionEntry

Fields of ExportSectionEntry

field: &'a strkind: ExternalKindindex: u32
NameSectionEntry(NameEntry<'a>)StartSectionEntry(u32)DataCountSectionEntry(u32)BeginInitExpressionBodyInitExpressionOperator(Operator<'a>)EndInitExpressionBodyBeginFunctionBody

Fields of BeginFunctionBody

range: Range
FunctionBodyLocals

Fields of FunctionBodyLocals

locals: Box<[(u32, Type)]>
CodeOperator(Operator<'a>)EndFunctionBodySkippingFunctionBodyBeginPassiveElementSectionEntry(Type)BeginActiveElementSectionEntry(u32)ElementSectionEntryBody(Box<[u32]>)EndElementSectionEntryBeginPassiveDataSectionEntryBeginActiveDataSectionEntry(u32)EndDataSectionEntryBeginDataSectionEntryBody(u32)DataSectionEntryBodyChunk(&'a [u8])EndDataSectionEntryBodyBeginGlobalSectionEntry(GlobalType)EndGlobalSectionEntryRelocSectionHeader(SectionCode<'a>)RelocSectionEntry(RelocEntry)LinkingSectionEntry(LinkingType)SourceMappingURL(&'a str)

Trait Implementations

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

Auto Trait Implementations

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

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

impl<'a> Unpin for ParserState<'a>

impl<'a> RefUnwindSafe for ParserState<'a>

impl<'a> UnwindSafe for ParserState<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]