[][src]Enum wast::DataKind

pub enum DataKind<'a> {
    Passive,
    Active {
        memory: Index<'a>,
        offset: Expression<'a>,
    },
}

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: Index<'a>

The memory that this Data will be associated with.

offset: Expression<'a>

Initial offset to load this data segment at

Trait Implementations

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for DataKind<'a>

impl<'a> Send for DataKind<'a>

impl<'a> Sync for DataKind<'a>

impl<'a> Unpin for DataKind<'a>

impl<'a> UnwindSafe for DataKind<'a>

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.