Trait FromValue
pub trait FromValue<V = Value>: Sized + Reflect {
// Required method
fn from_value(value: V) -> Result<Self, HintedString>;
}
Required Methods§
fn from_value(value: V) -> Result<Self, HintedString>
fn from_value(value: V) -> Result<Self, HintedString>
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.