pub trait TryFromValue: Sized {
// Required method
fn try_from_value(value: Value) -> Result<Self, EvaluationError>;
}Expand description
A falible Script-value to Rust-value conversion that consumes the input.
Required Methods§
Sourcefn try_from_value(value: Value) -> Result<Self, EvaluationError>
fn try_from_value(value: Value) -> Result<Self, EvaluationError>
Performs the conversion.
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.