Struct wasmer_runtime_fl::Global [−][src]
pub struct Global { /* fields omitted */ }
Expand description
A handle to a Wasm Global
Implementations
Create a new Global
value.
Usage:
let global = Global::new(Value::I32(42));
Create a new, mutable Global
value.
Usage:
let global = Global::new_mutable(Value::I32(42));
Get the GlobalDescriptor
generated for this global.
Set the value help by this global.
This method will panic if the value is the wrong type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Global
impl UnwindSafe for Global
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self