[][src]Enum wast::MemoryKind

pub enum MemoryKind<'a> {
    Import {
        module: &'a str,
        name: &'a str,
        ty: MemoryType,
    },
    Normal(MemoryType),
    Inline(Vec<&'a [u8]>),
}

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

Variants

Import

This memory is actually an inlined import definition.

Fields of Import

module: &'a strname: &'a strty: MemoryType
Normal(MemoryType)

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

Inline(Vec<&'a [u8]>)

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

Trait Implementations

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

Auto Trait Implementations

impl<'a> Send for MemoryKind<'a>

impl<'a> Sync for MemoryKind<'a>

impl<'a> Unpin for MemoryKind<'a>

impl<'a> UnwindSafe for MemoryKind<'a>

impl<'a> RefUnwindSafe for MemoryKind<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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