pub trait FromValueBehavior {
type Item;
// Required method
fn from_value(value: Value) -> Option<Self::Item>;
}Expand description
A trait for converting Value to types.
Required Associated Types§
Required Methods§
Sourcefn from_value(value: Value) -> Option<Self::Item>
fn from_value(value: Value) -> Option<Self::Item>
Converts a Value into a type.
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.