ToCanonical

Trait ToCanonical 

Source
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§

Source

fn to_null(&self) -> NullArray

Canonicalize into a NullArray if the target is Null typed.

Source

fn to_bool(&self) -> BoolArray

Canonicalize into a BoolArray if the target is Bool typed.

Source

fn to_primitive(&self) -> PrimitiveArray

Canonicalize into a PrimitiveArray if the target is Primitive typed.

Source

fn to_decimal(&self) -> DecimalArray

Canonicalize into a DecimalArray if the target is Decimal typed.

Source

fn to_struct(&self) -> StructArray

Canonicalize into a StructArray if the target is Struct typed.

Source

fn to_list(&self) -> ListArray

Canonicalize into a ListArray if the target is List typed.

Source

fn to_fixed_size_list(&self) -> FixedSizeListArray

Canonicalize into a ListArray if the target is List typed.

Source

fn to_varbinview(&self) -> VarBinViewArray

Canonicalize into a VarBinViewArray if the target is Utf8 or Binary typed.

Source

fn to_extension(&self) -> ExtensionArray

Canonicalize into an ExtensionArray if the array is Extension typed.

Implementors§

Source§

impl<A: Array + ?Sized> ToCanonical for A