pub trait ScalarValue {
// Required methods
fn from_value(value: Value) -> Result<Self>
where Self: Sized;
fn to_value(&self) -> Value;
}Required Methods§
fn from_value(value: Value) -> Result<Self>where
Self: Sized,
fn to_value(&self) -> Value
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".