pub trait Typer:
Default
+ Clone
+ Debug
+ Send
+ Sync
+ 'static {
type ColumnType: Display + Hash + Eq + Copy + Send + Sync + Debug + Default;
type DatasetValue: DatasetValue<Self::ColumnType>;
const COLUMN_TYPES: &'static [Self::ColumnType];
// Required method
fn parse_as(
&self,
value: &RawValue,
tag: Self::ColumnType,
) -> Parsed<Self::DatasetValue>;
// Provided method
fn parse(&self, value: &RawValue) -> Parsed<Self::DatasetValue> { ... }
}Required Associated Constants§
const COLUMN_TYPES: &'static [Self::ColumnType]
Required Associated Types§
type ColumnType: Display + Hash + Eq + Copy + Send + Sync + Debug + Default
type DatasetValue: DatasetValue<Self::ColumnType>
Required Methods§
fn parse_as( &self, value: &RawValue, tag: Self::ColumnType, ) -> Parsed<Self::DatasetValue>
Provided Methods§
fn parse(&self, value: &RawValue) -> Parsed<Self::DatasetValue>
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.