pub enum DataKind<'a> {
    Passive,
    Active {
        memory: Index<'a>,
        offset: Expression<'a>,
    },
}
Expand description

Different kinds of data segments, either passive or active.

Variants

Passive

A passive data segment which isn’t associated with a memory and is referenced from various instructions.

Active

Fields

memory: Index<'a>

The memory that this Data will be associated with.

offset: Expression<'a>

Initial offset to load this data segment at

An active data segment which is associated and loaded into a particular memory on module instantiation.

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.