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

Fields

import: InlineImport<'a>

This memory is actually an inlined import definition.

Normal(MemoryType)

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

Inline

Fields

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

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

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.