Enum wast::DataKind[][src]

pub enum DataKind<'a> {
    Passive,
    Active {
        memory: ItemRef<'a, memory>,
        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

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

Fields of Active

memory: ItemRef<'a, memory>

The memory that this Data will be associated with.

offset: Expression<'a>

Initial offset to load this data segment at

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

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.