[−][src]Enum wasmtime_api::Val
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(&self) -> 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]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self