[][src]Enum wasmtime_jit::RuntimeValue

pub enum RuntimeValue {
    I32(i32),
    I64(i64),
    F32(u32),
    F64(u64),
}

A runtime value.

Variants

I32(i32)

A runtime value with type i32.

I64(i64)

A runtime value with type i64.

F32(u32)

A runtime value with type f32.

F64(u64)

A runtime value with type f64.

Methods

impl RuntimeValue[src]

pub fn value_type(self) -> Type[src]

Return the type of this RuntimeValue.

pub fn unwrap_i32(self) -> i32[src]

Assuming this RuntimeValue holds an i32, return that value.

pub fn unwrap_i64(self) -> i64[src]

Assuming this RuntimeValue holds an i64, return that value.

pub fn unwrap_f32(self) -> f32[src]

Assuming this RuntimeValue holds an f32, return that value.

pub fn unwrap_f32_bits(self) -> u32[src]

Assuming this RuntimeValue holds an f32, return the bits of that value as a u32.

pub fn unwrap_f64(self) -> f64[src]

Assuming this RuntimeValue holds an f64, return that value.

pub fn unwrap_f64_bits(self) -> u64[src]

Assuming this RuntimeValue holds an f64, return the bits of that value as a u64.

Trait Implementations

impl Debug for RuntimeValue[src]

impl Display for RuntimeValue[src]

impl PartialEq<RuntimeValue> for RuntimeValue[src]

impl Eq for RuntimeValue[src]

impl Copy for RuntimeValue[src]

impl Clone for RuntimeValue[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self