#[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.
Trait Implementations§
Source§impl Clone for VMGlobalDefinition
impl Clone for VMGlobalDefinition
Source§fn clone(&self) -> VMGlobalDefinition
fn clone(&self) -> VMGlobalDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VMGlobalDefinition
impl Debug for VMGlobalDefinition
impl Copy for VMGlobalDefinition
Auto Trait Implementations§
impl Freeze for VMGlobalDefinition
impl RefUnwindSafe for VMGlobalDefinition
impl Send for VMGlobalDefinition
impl Sync for VMGlobalDefinition
impl Unpin for VMGlobalDefinition
impl UnwindSafe for VMGlobalDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more