Trait mule::Typer [−][src]
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]; fn parse_as(
&self,
value: &RawValue,
tag: Self::ColumnType
) -> Parsed<Self::DatasetValue>; fn parse(&self, value: &RawValue) -> Parsed<Self::DatasetValue> { ... } }
Associated Types
type ColumnType: Display + Hash + Eq + Copy + Send + Sync + Debug + Default
[src]
type DatasetValue: DatasetValue<Self::ColumnType>
[src]
Associated Constants
const COLUMN_TYPES: &'static [Self::ColumnType]
[src]
Required methods
fn parse_as(
&self,
value: &RawValue,
tag: Self::ColumnType
) -> Parsed<Self::DatasetValue>
[src]
&self,
value: &RawValue,
tag: Self::ColumnType
) -> Parsed<Self::DatasetValue>
Provided methods
fn parse(&self, value: &RawValue) -> Parsed<Self::DatasetValue>
[src]
Implementors
impl Typer for DefaultTyper
[src]
impl Typer for DefaultTyper
[src]type ColumnType = ColumnType
type DatasetValue = Value
const COLUMN_TYPES: &'static [Self::ColumnType]
[src]
fn parse_as(
&self,
value: &RawValue,
tag: Self::ColumnType
) -> Parsed<Self::DatasetValue>
[src]
&self,
value: &RawValue,
tag: Self::ColumnType
) -> Parsed<Self::DatasetValue>