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§
sourcefn try_from_value(val: Value) -> Option<Self>
fn try_from_value(val: Value) -> Option<Self>
Try to convert the given Value
into Self
.
Object Safety§
This trait is not object safe.