pub trait FromAnyValue: Clone + 'static {
// Required method
fn from_any_value(value: &dyn Any) -> Self;
}
Expand description
Something that can be converted from a borrowed Any value.
Required Methods§
Sourcefn from_any_value(value: &dyn Any) -> Self
fn from_any_value(value: &dyn Any) -> Self
Convert from an Any value.
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.