Trait mz_persist_types::columnar::ColumnCfg

source ·
pub trait ColumnCfg<T: Data> {
    // Required method
    fn as_type(&self) -> DataType;
}
Expand description

If necessary, whatever information beyond the type of Self needed to produce a columnar schema for this type.

Conceptually: type of Self + this config => columnar schema.

For most Data impls, this is not necessary and set to ().

Required Methods§

source

fn as_type(&self) -> DataType

Returns the DataType for an instance of T with this configuration.

Implementations on Foreign Types§

source§

impl ColumnCfg<Option<bool>> for ()

source§

impl ColumnCfg<Option<f32>> for ()

source§

impl ColumnCfg<Option<f64>> for ()

source§

impl ColumnCfg<Option<i8>> for ()

source§

impl ColumnCfg<Option<i16>> for ()

source§

impl ColumnCfg<Option<i32>> for ()

source§

impl ColumnCfg<Option<i64>> for ()

source§

impl ColumnCfg<Option<u8>> for ()

source§

impl ColumnCfg<Option<u16>> for ()

source§

impl ColumnCfg<Option<u32>> for ()

source§

impl ColumnCfg<Option<u64>> for ()

source§

impl ColumnCfg<Option<String>> for ()

source§

impl ColumnCfg<Option<Vec<u8>>> for ()

source§

impl ColumnCfg<Option<OpaqueData>> for ()

source§

impl ColumnCfg<bool> for ()

source§

impl ColumnCfg<f32> for ()

source§

impl ColumnCfg<f64> for ()

source§

impl ColumnCfg<i8> for ()

source§

impl ColumnCfg<i16> for ()

source§

impl ColumnCfg<i32> for ()

source§

impl ColumnCfg<i64> for ()

source§

impl ColumnCfg<u8> for ()

source§

impl ColumnCfg<u16> for ()

source§

impl ColumnCfg<u32> for ()

source§

impl ColumnCfg<u64> for ()

source§

impl ColumnCfg<String> for ()

source§

impl ColumnCfg<Vec<u8>> for ()

source§

impl ColumnCfg<OpaqueData> for ()

Implementors§