pub trait CanonicalVTable<V: VTable> {
// Required method
fn canonicalize(array: &V::Array) -> VortexResult<Canonical>;
// Provided method
fn append_to_builder(
array: &V::Array,
builder: &mut dyn ArrayBuilder,
) -> VortexResult<()> { ... }
}
Required Methods§
Sourcefn canonicalize(array: &V::Array) -> VortexResult<Canonical>
fn canonicalize(array: &V::Array) -> VortexResult<Canonical>
Returns the canonical representation of the array.
§Post-conditions
- The length is equal to that of the input array.
- The
vortex_dtype::DType
is equal to that of the input array.
Provided Methods§
Sourcefn append_to_builder(
array: &V::Array,
builder: &mut dyn ArrayBuilder,
) -> VortexResult<()>
fn append_to_builder( array: &V::Array, builder: &mut dyn ArrayBuilder, ) -> VortexResult<()>
Writes the array into a canonical builder.
§Post-conditions
- The length of the builder is incremented by the length of the input array.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.