[][src]Enum wast::GlobalKind

pub enum GlobalKind<'a> {
    Import {
        module: &'a str,
        name: &'a str,
    },
    Inline(Expression<'a>),
}

Different kinds of globals that can be defined in a module.

Variants

Import

A global which is actually defined as an import, such as:

(global i32 (import "foo" "bar"))

Fields of Import

module: &'a str

The module that this function is imported from

name: &'a str

The module field name this function is imported from

Inline(Expression<'a>)

A global defined inline in the module itself

Trait Implementations

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

Auto Trait Implementations

impl<'a> Send for GlobalKind<'a>

impl<'a> Sync for GlobalKind<'a>

impl<'a> Unpin for GlobalKind<'a>

impl<'a> UnwindSafe for GlobalKind<'a>

impl<'a> RefUnwindSafe for GlobalKind<'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]