[][src]Struct wast::Global

pub struct Global<'a> {
    pub span: Span,
    pub name: Option<Id<'a>>,
    pub exports: InlineExport<'a>,
    pub ty: GlobalType,
    pub kind: GlobalKind<'a>,
}

A WebAssembly global in a module

Fields

span: Span

Where this global was defined.

name: Option<Id<'a>>

An optional name to reference this global by

exports: InlineExport<'a>

If present, inline export annotations which indicate names this definition should be exported under.

ty: GlobalType

The type of this global, both its value type and whether it's mutable.

kind: GlobalKind<'a>

What kind of global this defined as.

Trait Implementations

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

impl<'a> Parse<'a> for Global<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Global<'a>

impl<'a> Send for Global<'a>

impl<'a> Sync for Global<'a>

impl<'a> Unpin for Global<'a>

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