Struct wast::Local[][src]

pub struct Local<'a> {
    pub id: Option<Id<'a>>,
    pub name: Option<NameAnnotation<'a>>,
    pub ty: ValType<'a>,
}
Expand description

A local for a func or let instruction.

Each local has an optional identifier for name resolution, an optional name for the custom name section, and a value type.

Fields

id: Option<Id<'a>>

An identifier that this local is resolved with (optionally) for name resolution.

name: Option<NameAnnotation<'a>>

An optional name for this local stored in the custom name section.

ty: ValType<'a>

The value type of this local.

Trait Implementations

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 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.