pub trait ValueType: Sized + Clone + Into<Value> {
// Required method
fn try_from_value(v: &Value) -> Result<Self, ValueTypeError>;
}
Expand description
Values which can be stored in an environment.
Required Methods§
sourcefn try_from_value(v: &Value) -> Result<Self, ValueTypeError>
fn try_from_value(v: &Value) -> Result<Self, ValueTypeError>
Attempt to convert the generic Value
into this type.