[][src]Struct wasmtime::GlobalType

pub struct GlobalType { /* fields omitted */ }

A WebAssembly global descriptor.

This type describes an instance of a global in a WebAssembly module. Globals are local to an Instance and are either immutable or mutable.

Implementations

impl GlobalType[src]

pub fn new(content: ValType, mutability: Mutability) -> GlobalType[src]

Creates a new global descriptor of the specified content type and whether or not it's mutable.

pub fn content(&self) -> &ValType[src]

Returns the value type of this global descriptor.

pub fn mutability(&self) -> Mutability[src]

Returns whether or not this global is mutable.

Trait Implementations

impl Clone for GlobalType[src]

impl Debug for GlobalType[src]

impl Eq for GlobalType[src]

impl From<GlobalType> for ExternType[src]

impl Hash for GlobalType[src]

impl PartialEq<GlobalType> for GlobalType[src]

impl StructuralEq for GlobalType[src]

impl StructuralPartialEq for GlobalType[src]

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.