pub trait IntoCanonical {
// Required method
fn into_canonical(self) -> VortexResult<Canonical>;
}
Expand description
Support trait for transmuting an array into its vortex_dtype::DType’s canonical encoding.
This conversion ensures that the array’s encoding matches one of the builtin canonical encodings, each of which has a corresponding Canonical variant.
§Invariants
The DType of the array will be unchanged by canonicalization.
Required Methods§
fn into_canonical(self) -> VortexResult<Canonical>
Implementors§
impl IntoCanonical for Array
IntoCanonical implementation for Array.
Canonicalizing an array requires potentially decompressing, so this requires a roundtrip through the array’s internal codec.