pub trait ToValue {
// Required method
fn to_value(&self) -> Value<'_>;
}Expand description
Convert a reference to a Value.
This trait is the basis for the Value::from_any method.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".