pub trait TryFromValue: Sized {
    // Required method
    fn try_from_value(val: Value) -> Option<Self>;
}
Expand description

Something that can may be created from a wasm Value.

Required Methods§

source

fn try_from_value(val: Value) -> Option<Self>

Try to convert the given Value into Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryFromValue for i8

source§

impl TryFromValue for i16

source§

impl TryFromValue for i32

source§

impl TryFromValue for i64

source§

impl TryFromValue for u8

source§

impl TryFromValue for u16

source§

impl TryFromValue for u32

source§

impl TryFromValue for u64

Implementors§