Trait sp_wasm_interface::TryFromValue [−][src]
pub trait TryFromValue: Sized { fn try_from_value(val: Value) -> Option<Self>; }
Something that can may be created from a wasm Value.
Required methods
fn try_from_value(val: Value) -> Option<Self>[src]
Try to convert the given Value into Self.
Implementations on Foreign Types
impl TryFromValue for u8[src]
impl TryFromValue for u8[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for u16[src]
impl TryFromValue for u16[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for u32[src]
impl TryFromValue for u32[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for u64[src]
impl TryFromValue for u64[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for i8[src]
impl TryFromValue for i8[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for i16[src]
impl TryFromValue for i16[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for i32[src]
impl TryFromValue for i32[src]fn try_from_value(val: Value) -> Option<Self>[src]
impl TryFromValue for i64[src]
impl TryFromValue for i64[src]fn try_from_value(val: Value) -> Option<Self>[src]
Implementors
impl<T: PointerType> TryFromValue for Pointer<T>[src]
impl<T: PointerType> TryFromValue for Pointer<T>[src]