pub trait FromMetadataValue: Sized {
// Required method
fn from_metadata_value(value: &Value) -> ValueResult<Self>;
}Expand description
Required Methods§
Sourcefn from_metadata_value(value: &Value) -> ValueResult<Self>
fn from_metadata_value(value: &Value) -> ValueResult<Self>
Converts value into Self.
§Errors
Returns a qubit_value::ValueError when the stored value is absent,
unsupported, or cannot be converted to 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.