Struct wast::BlockType[][src]

pub struct BlockType<'a> {
    pub label: Option<Id<'a>>,
    pub label_name: Option<NameAnnotation<'a>>,
    pub ty: TypeUse<'a, FunctionType<'a>>,
}
Expand description

Extra information associated with block-related instructions.

This is used to label blocks and also annotate what types are expected for the block.

Fields

label: Option<Id<'a>>label_name: Option<NameAnnotation<'a>>ty: TypeUse<'a, FunctionType<'a>>

Trait Implementations

Formats the value using the given formatter. Read more

Attempts to parse Self from parser, returning an error if it could not be parsed. 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.