pub trait ToCanonical {
// Required methods
fn to_null(&self) -> NullArray;
fn to_bool(&self) -> BoolArray;
fn to_primitive(&self) -> PrimitiveArray;
fn to_decimal(&self) -> DecimalArray;
fn to_struct(&self) -> StructArray;
fn to_list(&self) -> ListArray;
fn to_fixed_size_list(&self) -> FixedSizeListArray;
fn to_varbinview(&self) -> VarBinViewArray;
fn to_extension(&self) -> 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.
Required Methods§
Sourcefn to_primitive(&self) -> PrimitiveArray
fn to_primitive(&self) -> PrimitiveArray
Canonicalize into a PrimitiveArray
if the target is Primitive
typed.
Sourcefn to_decimal(&self) -> DecimalArray
fn to_decimal(&self) -> DecimalArray
Canonicalize into a DecimalArray
if the target is Decimal
typed.
Sourcefn to_struct(&self) -> StructArray
fn to_struct(&self) -> StructArray
Canonicalize into a StructArray
if the target is Struct
typed.
Sourcefn to_fixed_size_list(&self) -> FixedSizeListArray
fn to_fixed_size_list(&self) -> FixedSizeListArray
Sourcefn to_varbinview(&self) -> VarBinViewArray
fn to_varbinview(&self) -> VarBinViewArray
Canonicalize into a VarBinViewArray
if the target is Utf8
or Binary
typed.
Sourcefn to_extension(&self) -> ExtensionArray
fn to_extension(&self) -> ExtensionArray
Canonicalize into an ExtensionArray
if the array is Extension
typed.