Enum wasmparser::Name[][src]

pub enum Name<'a> {
    Module(SingleName<'a>),
    Function(NameMap<'a>),
    Local(IndirectNameMap<'a>),
    Label(IndirectNameMap<'a>),
    Type(NameMap<'a>),
    Table(NameMap<'a>),
    Memory(NameMap<'a>),
    Global(NameMap<'a>),
    Element(NameMap<'a>),
    Data(NameMap<'a>),
    Unknown {
        ty: u32,
        data: &'a [u8],
        range: Range,
    },
}

Variants

Module(SingleName<'a>)

Tuple Fields of Module

0: SingleName<'a>
Function(NameMap<'a>)

Tuple Fields of Function

0: NameMap<'a>
Local(IndirectNameMap<'a>)

Tuple Fields of Local

0: IndirectNameMap<'a>
Label(IndirectNameMap<'a>)

Tuple Fields of Label

0: IndirectNameMap<'a>
Type(NameMap<'a>)

Tuple Fields of Type

0: NameMap<'a>
Table(NameMap<'a>)

Tuple Fields of Table

0: NameMap<'a>
Memory(NameMap<'a>)

Tuple Fields of Memory

0: NameMap<'a>
Global(NameMap<'a>)

Tuple Fields of Global

0: NameMap<'a>
Element(NameMap<'a>)

Tuple Fields of Element

0: NameMap<'a>
Data(NameMap<'a>)

Tuple Fields of Data

0: NameMap<'a>
Unknown

An unknown name subsection.

Fields of Unknown

ty: u32

The identifier for this subsection.

data: &'a [u8]

The contents of this subsection.

range: Range

The range of bytes, relative to the start of the original data stream, that the contents of this subsection reside in.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.