[−][src]Enum wasmtime_api::Val
Variants
I32(i32)
I64(i64)
F32(u32)
F64(u64)
AnyRef(AnyRef)
Implementations
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]
pub fn i32(&self) -> i32
[src]
pub fn i64(&self) -> i64
[src]
pub fn f32(&self) -> f32
[src]
pub fn f64(&self) -> f64
[src]
pub fn f32_bits(&self) -> u32
[src]
pub fn f64_bits(&self) -> u64
[src]
Trait Implementations
impl Clone for Val
[src]
impl Debug for Val
[src]
impl From<AnyRef> for Val
[src]
impl From<HostRef<Func>> for Val
[src]
impl From<RuntimeValue> for Val
[src]
fn from(rv: RuntimeValue) -> Self
[src]
impl From<f32> for Val
[src]
impl From<f64> for Val
[src]
impl From<i32> for Val
[src]
impl From<i64> for Val
[src]
impl Into<AnyRef> for Val
[src]
impl Into<RuntimeValue> for Val
[src]
fn into(self) -> RuntimeValue
[src]
impl Into<f32> for Val
[src]
impl Into<f64> for Val
[src]
impl Into<i32> for Val
[src]
impl Into<i64> for Val
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Val
impl !Send for Val
impl !Sync for Val
impl Unpin for Val
impl !UnwindSafe for Val
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> Same<T> for T
type Output = T
Should always be Self
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>,