pub trait ValueType: Sized {
// Required methods
fn try_from(v: Value) -> Result<Self, ValueTypeErr>;
fn type_name() -> String;
fn column_type() -> ColumnType;
// Provided method
fn unwrap(v: Value) -> Self { ... }
}
Required Methods§
fn try_from(v: Value) -> Result<Self, ValueTypeErr>
fn type_name() -> String
fn column_type() -> ColumnType
Provided Methods§
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.