Trait casper_wasmi_core::FromValue
source · pub trait FromValuewhere
Self: Sized,{
// Required method
fn from_value(val: Value) -> Option<Self>;
}Expand description
Required Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl FromValue for bool
impl FromValue for bool
This conversion assumes that boolean values are represented by
I32 type.
fn from_value(val: Value) -> Option<Self>
source§impl FromValue for i8
impl FromValue for i8
This conversion assumes that i8 is represented as an I32.
fn from_value(val: Value) -> Option<Self>
source§impl FromValue for i16
impl FromValue for i16
This conversion assumes that i16 is represented as an I32.
fn from_value(val: Value) -> Option<Self>
source§impl FromValue for u8
impl FromValue for u8
This conversion assumes that u8 is represented as an I32.
fn from_value(val: Value) -> Option<Self>
source§impl FromValue for u16
impl FromValue for u16
This conversion assumes that u16 is represented as an I32.