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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.