[][src]Enum wasmtime_api::Val

pub enum Val {
    I32(i32),
    I64(i64),
    F32(u32),
    F64(u64),
    AnyRef(Rc<RefCell<AnyRef>>),
    FuncRef(Rc<RefCell<FuncRef>>),
}

Variants

I32(i32)I64(i64)F32(u32)F64(u64)AnyRef(Rc<RefCell<AnyRef>>)FuncRef(Rc<RefCell<FuncRef>>)

Methods

impl Val[src]

pub fn default() -> Val[src]

pub fn type(&self) -> ValType[src]

pub fn from_f32_bits(v: u32) -> Val[src]

pub fn from_f64_bits(v: u64) -> Val[src]

Trait Implementations

impl From<i32> for Val[src]

impl From<i64> for Val[src]

impl From<f32> for Val[src]

impl From<f64> for Val[src]

impl From<Rc<RefCell<AnyRef>>> for Val[src]

impl From<Rc<RefCell<FuncRef>>> for Val[src]

impl Into<i32> for Val[src]

impl Into<i64> for Val[src]

impl Into<f32> for Val[src]

impl Into<f64> for Val[src]

impl Clone for Val[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Val[src]

Auto Trait Implementations

impl Unpin for Val

impl !Send for Val

impl !Sync for Val

impl !RefUnwindSafe for Val

impl !UnwindSafe for Val

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self