Trait mz_repr::row::encoding::DatumEncoderT

source ·
pub trait DatumEncoderT {
    // Required methods
    fn encode(&mut self, datum: Datum<'_>);
    fn encode_default(&mut self);
    fn finish(self) -> DynColumnMut;
}
Expand description

An enum_dispatch companion for DatumEncoder.

This allows us to do Datum encoding without dynamic dispatch. It’s a pretty hot path, so the hassle is worth it.

Required Methods§

source

fn encode(&mut self, datum: Datum<'_>)

source

fn encode_default(&mut self)

source

fn finish(self) -> DynColumnMut

Implementors§