pub trait ToCanonical: Array {
    // Provided methods
    fn to_null(&self) -> VortexResult<NullArray> { ... }
    fn to_bool(&self) -> VortexResult<BoolArray> { ... }
    fn to_primitive(&self) -> VortexResult<PrimitiveArray> { ... }
    fn to_struct(&self) -> VortexResult<StructArray> { ... }
    fn to_list(&self) -> VortexResult<ListArray> { ... }
    fn to_varbinview(&self) -> VortexResult<VarBinViewArray> { ... }
    fn to_extension(&self) -> VortexResult<ExtensionArray> { ... }
}Expand description
Trait for types that can be converted from an owned type into an owned array variant.
§Canonicalization
This trait has a blanket implementation for all types implementing ToCanonical.