Typer

Trait Typer 

Source
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§

Source

const COLUMN_TYPES: &'static [Self::ColumnType]

Required Associated Types§

Required Methods§

Source

fn parse_as( &self, value: &RawValue, tag: Self::ColumnType, ) -> Parsed<Self::DatasetValue>

Provided Methods§

Source

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.

Implementors§