Enum wast::ElemPayload[][src]

pub enum ElemPayload<'a> {
    Indices(Vec<ItemRef<'a, func>>),
    Exprs {
        ty: RefType<'a>,
        exprs: Vec<Expression<'a>>,
    },
}
Expand description

Different ways to define the element segment payload in a module.

Variants

Indices

This element segment has a contiguous list of function indices

Tuple Fields of Indices

0: Vec<ItemRef<'a, func>>
Exprs

This element segment has a list of optional function indices, represented as expressions using ref.func and ref.null.

Fields of Exprs

ty: RefType<'a>

The desired type of each expression below.

exprs: Vec<Expression<'a>>

The expressions in this segment.

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.