Enum wast::InstanceKind[][src]

pub enum InstanceKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: TypeUse<'a, InstanceType<'a>>,
    },
    Inline {
        module: ItemRef<'a, module>,
        args: Vec<InstanceArg<'a>>,
    },
}

Possible ways to define a instance in the text format.

Variants

Import

An instance which is actually defined as an import, such as:

Fields of Import

import: InlineImport<'a>

Where we’re importing from

ty: TypeUse<'a, InstanceType<'a>>

The type that this instance will have.

Inline

Instances whose instantiation is defined inline.

Fields of Inline

module: ItemRef<'a, module>

Module that we’re instantiating

args: Vec<InstanceArg<'a>>

Arguments used to instantiate the instance

Trait Implementations

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for InstanceKind<'a>

impl<'a> Send for InstanceKind<'a>

impl<'a> Sync for InstanceKind<'a>

impl<'a> Unpin for InstanceKind<'a>

impl<'a> UnwindSafe for InstanceKind<'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.