[−][src]Struct wasmer_vm::VMGlobalDefinition
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]
pub fn new() -> Self
[src]
Construct a VMGlobalDefinition
.
pub unsafe fn as_i32(&self) -> &i32
[src]
pub unsafe fn as_i32_mut(&mut self) -> &mut i32
[src]
pub unsafe fn as_u32(&self) -> &u32
[src]
pub unsafe fn as_u32_mut(&mut self) -> &mut u32
[src]
pub unsafe fn as_i64(&self) -> &i64
[src]
pub unsafe fn as_i64_mut(&mut self) -> &mut i64
[src]
pub unsafe fn as_u64(&self) -> &u64
[src]
pub unsafe fn as_u64_mut(&mut self) -> &mut u64
[src]
pub unsafe fn as_f32(&self) -> &f32
[src]
pub unsafe fn as_f32_mut(&mut self) -> &mut f32
[src]
pub unsafe fn as_f32_bits(&self) -> &u32
[src]
pub unsafe fn as_f32_bits_mut(&mut self) -> &mut u32
[src]
pub unsafe fn as_f64(&self) -> &f64
[src]
pub unsafe fn as_f64_mut(&mut self) -> &mut f64
[src]
pub unsafe fn as_f64_bits(&self) -> &u64
[src]
pub unsafe fn as_f64_bits_mut(&mut self) -> &mut u64
[src]
pub unsafe fn as_u128(&self) -> &u128
[src]
pub unsafe fn as_u128_mut(&mut self) -> &mut u128
[src]
pub unsafe fn as_u128_bits(&self) -> &[u8; 16]
[src]
pub unsafe fn as_u128_bits_mut(&mut self) -> &mut [u8; 16]
[src]
Trait Implementations
impl Clone for VMGlobalDefinition
[src]
fn clone(&self) -> VMGlobalDefinition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VMGlobalDefinition
[src]
Auto Trait Implementations
impl RefUnwindSafe for VMGlobalDefinition
impl Send for VMGlobalDefinition
impl Sync for VMGlobalDefinition
impl Unpin for VMGlobalDefinition
impl UnwindSafe for VMGlobalDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,