[−][src]Trait wasmi::FromRuntimeValue
Trait for creating value from a RuntimeValue.
Typically each implementation can create a value from the specific type.
For example, values of type bool or u32 are both represented by I32 and f64 values are represented by
F64.
Required Methods
fn from_runtime_value(val: RuntimeValue) -> Option<Self>
Create a value of type Self from a given RuntimeValue.
Returns None if the RuntimeValue is of type different than
expected by the conversion in question.
Implementations on Foreign Types
impl FromRuntimeValue for bool[src]
impl FromRuntimeValue for boolThis conversion assumes that boolean values are represented by
I32 type.
fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for i8[src]
impl FromRuntimeValue for i8This conversion assumes that i8 is represented as an I32.
fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for i16[src]
impl FromRuntimeValue for i16This conversion assumes that i16 is represented as an I32.
fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for u8[src]
impl FromRuntimeValue for u8This conversion assumes that u8 is represented as an I32.
fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for u16[src]
impl FromRuntimeValue for u16This conversion assumes that u16 is represented as an I32.
fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for i32[src]
impl FromRuntimeValue for i32fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for i64[src]
impl FromRuntimeValue for i64fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for F32[src]
impl FromRuntimeValue for F32fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for F64[src]
impl FromRuntimeValue for F64fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for u32[src]
impl FromRuntimeValue for u32fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>impl FromRuntimeValue for u64[src]
impl FromRuntimeValue for u64fn from_runtime_value(val: RuntimeValue) -> Option<Self>[src]
fn from_runtime_value(val: RuntimeValue) -> Option<Self>