pub trait ValueLike: Sized {
// Required methods
fn into_value(self) -> Value;
fn try_from_value(value: Value) -> Result<Self, Value>;
}Expand description
Represents some data that can be converted to and from a Value
Required Methods§
Sourcefn into_value(self) -> Value
fn into_value(self) -> Value
Consumes this data, converting it into an abstract 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.