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

0: SingleName<'a>

Function(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Local(IndirectNameMap<'a>)

Tuple Fields

Label(IndirectNameMap<'a>)

Tuple Fields

Type(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Table(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Memory(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Global(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Element(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Data(NameMap<'a>)

Tuple Fields

0: NameMap<'a>

Unknown

Fields

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.

An unknown name subsection.

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)

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.