pub trait ToConstValue: Sized {
// Required method
fn to_const_value(self) -> Result<ConstValue, RuntimeError>;
}Expand description
Trait to perform a conversion to a ConstValue.
Required Methods§
Sourcefn to_const_value(self) -> Result<ConstValue, RuntimeError>
fn to_const_value(self) -> Result<ConstValue, RuntimeError>
Convert into 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.