pub trait FromConstValue: Sized {
// Required method
fn from_const_value(value: ConstValue) -> Result<Self, RuntimeError>;
}
Expand description
Convert a value from a constant value.
Required Methods§
Sourcefn from_const_value(value: ConstValue) -> Result<Self, RuntimeError>
fn from_const_value(value: ConstValue) -> Result<Self, RuntimeError>
Convert from a constant 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.