Struct wasmtime_runtime::VMGlobalDefinition [−][src]
#[repr(C, align(16))]pub struct VMGlobalDefinition { /* fields omitted */ }
The storage for a WebAssembly global defined within the instance.
TODO: Pack the globals more densely, rather than using the same size for every type.
Implementations
impl VMGlobalDefinition[src]
impl VMGlobalDefinition[src]pub fn new() -> Self[src]
Construct a VMGlobalDefinition.
pub unsafe fn as_i32(&self) -> &i32[src]
Return a reference to the value as an i32.
pub unsafe fn as_i32_mut(&mut self) -> &mut i32[src]
Return a mutable reference to the value as an i32.
pub unsafe fn as_u32(&self) -> &u32[src]
Return a reference to the value as a u32.
pub unsafe fn as_u32_mut(&mut self) -> &mut u32[src]
Return a mutable reference to the value as an u32.
pub unsafe fn as_i64(&self) -> &i64[src]
Return a reference to the value as an i64.
pub unsafe fn as_i64_mut(&mut self) -> &mut i64[src]
Return a mutable reference to the value as an i64.
pub unsafe fn as_u64(&self) -> &u64[src]
Return a reference to the value as an u64.
pub unsafe fn as_u64_mut(&mut self) -> &mut u64[src]
Return a mutable reference to the value as an u64.
pub unsafe fn as_f32(&self) -> &f32[src]
Return a reference to the value as an f32.
pub unsafe fn as_f32_mut(&mut self) -> &mut f32[src]
Return a mutable reference to the value as an f32.
pub unsafe fn as_f32_bits(&self) -> &u32[src]
Return a reference to the value as f32 bits.
pub unsafe fn as_f32_bits_mut(&mut self) -> &mut u32[src]
Return a mutable reference to the value as f32 bits.
pub unsafe fn as_f64(&self) -> &f64[src]
Return a reference to the value as an f64.
pub unsafe fn as_f64_mut(&mut self) -> &mut f64[src]
Return a mutable reference to the value as an f64.
pub unsafe fn as_f64_bits(&self) -> &u64[src]
Return a reference to the value as f64 bits.
pub unsafe fn as_f64_bits_mut(&mut self) -> &mut u64[src]
Return a mutable reference to the value as f64 bits.
pub unsafe fn as_u128(&self) -> &u128[src]
Return a reference to the value as an u128.
pub unsafe fn as_u128_mut(&mut self) -> &mut u128[src]
Return a mutable reference to the value as an u128.
pub unsafe fn as_u128_bits(&self) -> &[u8; 16][src]
Return a reference to the value as u128 bits.
pub unsafe fn as_u128_bits_mut(&mut self) -> &mut [u8; 16][src]
Return a mutable reference to the value as u128 bits.
pub unsafe fn as_externref(&self) -> &Option<VMExternRef>[src]
Return a reference to the value as an externref.
pub unsafe fn as_externref_mut(&mut self) -> &mut Option<VMExternRef>[src]
Return a mutable reference to the value as an externref.
pub unsafe fn as_anyfunc(&self) -> *const VMCallerCheckedAnyfunc[src]
Return a reference to the value as an anyfunc.
pub unsafe fn as_anyfunc_mut(&mut self) -> &mut *const VMCallerCheckedAnyfunc[src]
Return a mutable reference to the value as an anyfunc.
Trait Implementations
impl Clone for VMGlobalDefinition[src]
impl Clone for VMGlobalDefinition[src]