Struct wasmi::GlobalRef[][src]

pub struct GlobalRef(_);

Reference to a global variable (See GlobalInstance for details).

This reference has a reference-counting semantics.

Methods from Deref<Target = GlobalInstance>

Change the value of this global variable.

Errors

Returns Err if this global isn't mutable or if type of val doesn't match global's type.

Get the value of this global variable.

Returns if this global variable is mutable.

Note: Imported and/or exported globals are always immutable.

Returns value type of this global variable.

Trait Implementations

impl Clone for GlobalRef
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GlobalRef
[src]

Formats the value using the given formatter. Read more

impl Deref for GlobalRef
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl !Send for GlobalRef

impl !Sync for GlobalRef