pub trait Converter: Sized {
// Required methods
fn to_field_value(&self) -> FieldValue;
fn to_primitive(fv: FieldValue) -> Result<Self, StructMapError>;
}
Required Methods§
fn to_field_value(&self) -> FieldValue
fn to_primitive(fv: FieldValue) -> Result<Self, StructMapError>
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.