Module connectorx::typesystem
source · Expand description
This module defines traits that required to define a typesystem.
A typesystem is an enum that describes what types can be produced by a source and accepted by a destination.
A typesystem also needs to implement [TypeAssoc
] to associate the enum variants to the physical representation
of the types in the typesystem.
Traits§
- Transport asks the source to produce a value, do type conversion and then write the value to a destination. Do not manually implement this trait for types. Use [
impl_transport!
] to create a struct that implements this trait instead. - Defines a rule to convert a type
T
to a typeU
.