Enum wast::MemoryKind[][src]

pub enum MemoryKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: MemoryType,
    },
    Normal(MemoryType),
    Inline {
        is_32: bool,
        data: Vec<DataVal<'a>>,
    },
}
Expand description

Different syntactical ways a memory can be defined in a module.

Variants

Import

This memory is actually an inlined import definition.

Fields of Import

import: InlineImport<'a>ty: MemoryType
Normal(MemoryType)

A typical memory definition which simply says the limits of the memory

Tuple Fields of Normal

0: MemoryType
Inline

The data of this memory, starting from 0, explicitly listed

Fields of Inline

is_32: bool

Whether or not this will be creating a 32-bit memory

data: Vec<DataVal<'a>>

The inline data specified for this memory

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.