pub trait FromValue<V = Value>: Sized + Reflect {
// Required method
fn from_value(value: V) -> HintedStrResult<Self>;
}Required Methods§
Sourcefn from_value(value: V) -> HintedStrResult<Self>
fn from_value(value: V) -> HintedStrResult<Self>
Try to cast the value into an instance of 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.