Enum wast::NestedModuleKind[][src]

pub enum NestedModuleKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: TypeUse<'a, ModuleType<'a>>,
    },
    Inline {
        fields: Vec<ModuleField<'a>>,
    },
}

Possible ways to define a nested module in the text format.

Variants

Import

An nested module which is actually defined as an import, such as:

Fields of Import

import: InlineImport<'a>

Where this nested module is imported from

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

The type that this nested module will have.

Inline

Nested modules whose instantiation is defined inline.

Fields of Inline

fields: Vec<ModuleField<'a>>

Fields in the nested module.

Trait Implementations

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for NestedModuleKind<'a>

impl<'a> Send for NestedModuleKind<'a>

impl<'a> Sync for NestedModuleKind<'a>

impl<'a> Unpin for NestedModuleKind<'a>

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