pub trait TryFromValue<'a, T>: Sized {
// Required method
fn try_from_value(value: Value<'a, T>) -> Result<Self, FromValueError>;
}Expand description
Required Methods§
Sourcefn try_from_value(value: Value<'a, T>) -> Result<Self, FromValueError>
fn try_from_value(value: Value<'a, T>) -> Result<Self, FromValueError>
Attempts to convert value to a type supported by the function.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".