pub trait FromValue<'v> {
// Required method
fn from_value(value: Value<'v>) -> Option<Self>
where Self: Sized;
}Expand description
Convert from a Value.
This trait is the basis for the Value::cast method.
Required Methods§
Sourcefn from_value(value: Value<'v>) -> Option<Self>where
Self: Sized,
fn from_value(value: Value<'v>) -> Option<Self>where
Self: Sized,
Perform the conversion.