[][src]Enum wast::MemoryKind

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

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

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

impl<'a> Debug for MemoryKind<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MemoryKind<'a>[src]

impl<'a> Send for MemoryKind<'a>[src]

impl<'a> Sync for MemoryKind<'a>[src]

impl<'a> Unpin for MemoryKind<'a>[src]

impl<'a> UnwindSafe for MemoryKind<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.