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

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

Variants

Indices(Vec<Index<'a>>)

This element segment has a contiguous list of function indices

Exprs

Fields

ty: RefType<'a>

The desired type of each expression below.

exprs: Vec<Expression<'a>>

The expressions in this segment.

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.