Struct wasmtime_runtime::VMGlobalDefinition
source · #[repr(C, align(16))]pub struct VMGlobalDefinition { /* private fields */ }
Expand description
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§
source§impl VMGlobalDefinition
impl VMGlobalDefinition
sourcepub unsafe fn as_i32_mut(&mut self) -> &mut i32
pub unsafe fn as_i32_mut(&mut self) -> &mut i32
Return a mutable reference to the value as an i32.
sourcepub unsafe fn as_u32_mut(&mut self) -> &mut u32
pub unsafe fn as_u32_mut(&mut self) -> &mut u32
Return a mutable reference to the value as an u32.
sourcepub unsafe fn as_i64_mut(&mut self) -> &mut i64
pub unsafe fn as_i64_mut(&mut self) -> &mut i64
Return a mutable reference to the value as an i64.
sourcepub unsafe fn as_u64_mut(&mut self) -> &mut u64
pub unsafe fn as_u64_mut(&mut self) -> &mut u64
Return a mutable reference to the value as an u64.
sourcepub unsafe fn as_f32_mut(&mut self) -> &mut f32
pub unsafe fn as_f32_mut(&mut self) -> &mut f32
Return a mutable reference to the value as an f32.
sourcepub unsafe fn as_f32_bits(&self) -> &u32
pub unsafe fn as_f32_bits(&self) -> &u32
Return a reference to the value as f32 bits.
sourcepub unsafe fn as_f32_bits_mut(&mut self) -> &mut u32
pub unsafe fn as_f32_bits_mut(&mut self) -> &mut u32
Return a mutable reference to the value as f32 bits.
sourcepub unsafe fn as_f64_mut(&mut self) -> &mut f64
pub unsafe fn as_f64_mut(&mut self) -> &mut f64
Return a mutable reference to the value as an f64.
sourcepub unsafe fn as_f64_bits(&self) -> &u64
pub unsafe fn as_f64_bits(&self) -> &u64
Return a reference to the value as f64 bits.
sourcepub unsafe fn as_f64_bits_mut(&mut self) -> &mut u64
pub unsafe fn as_f64_bits_mut(&mut self) -> &mut u64
Return a mutable reference to the value as f64 bits.
sourcepub unsafe fn as_u128_mut(&mut self) -> &mut u128
pub unsafe fn as_u128_mut(&mut self) -> &mut u128
Return a mutable reference to the value as an u128.
sourcepub unsafe fn as_u128_bits(&self) -> &[u8; 16]
pub unsafe fn as_u128_bits(&self) -> &[u8; 16]
Return a reference to the value as u128 bits.
sourcepub unsafe fn as_u128_bits_mut(&mut self) -> &mut [u8; 16]
pub unsafe fn as_u128_bits_mut(&mut self) -> &mut [u8; 16]
Return a mutable reference to the value as u128 bits.
sourcepub unsafe fn as_externref(&self) -> &Option<VMExternRef>
pub unsafe fn as_externref(&self) -> &Option<VMExternRef>
Return a reference to the value as an externref.
sourcepub unsafe fn as_externref_mut(&mut self) -> &mut Option<VMExternRef>
pub unsafe fn as_externref_mut(&mut self) -> &mut Option<VMExternRef>
Return a mutable reference to the value as an externref.
sourcepub unsafe fn as_func_ref(&self) -> *mut VMFuncRef
pub unsafe fn as_func_ref(&self) -> *mut VMFuncRef
Return a reference to the value as a VMFuncRef
.
sourcepub unsafe fn as_func_ref_mut(&mut self) -> &mut *mut VMFuncRef
pub unsafe fn as_func_ref_mut(&mut self) -> &mut *mut VMFuncRef
Return a mutable reference to the value as a VMFuncRef
.