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>

[src]

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.

[src]

Get the value of this global variable.

[src]

Returns if this global variable is mutable.

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

[src]

Returns value type of this global variable.

Trait Implementations

impl Clone for GlobalRef
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GlobalRef
[src]

[src]

Formats the value using the given formatter. Read more

impl Deref for GlobalRef
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl !Send for GlobalRef

impl !Sync for GlobalRef