pub enum ElemKind<'a> {
    Passive,
    Declared,
    Active {
        table: ItemRef<'a, table>,
        offset: Expression<'a>,
    },
}
Expand description

Different ways to define an element segment in an mdoule.

Variants

Passive

A passive segment that isn’t associated with a table and can be used in various bulk-memory instructions.

Declared

A declared element segment that is purely used to declare function references.

Active

Fields

table: ItemRef<'a, table>

The table this elem is initializing.

offset: Expression<'a>

The offset within table that we’ll initialize at.

An active segment associated with a table.

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

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.