pub trait EncoderBuild: Sized {
// Required method
async fn build(
params: EncoderParams<'_>,
pk_indices: Option<Vec<usize>>,
) -> Result<Self>;
}
Expand description
Each encoder shall be able to be built from parameters.
This is not part of RowEncoder
trait, because that one is about how an encoder completes its
own job as a self-contained unit, with a custom new
asking for only necessary info; while this
one is about how different encoders can be selected from a common SQL interface.
Required Methods§
Object Safety§
This trait is not object safe.