Trait vortex::IntoArrayVariant

pub trait IntoArrayVariant {
    // Required methods
    fn into_null(self) -> Result<NullArray, VortexError>;
    fn into_bool(self) -> Result<BoolArray, VortexError>;
    fn into_primitive(self) -> Result<PrimitiveArray, VortexError>;
    fn into_struct(self) -> Result<StructArray, VortexError>;
    fn into_list(self) -> Result<ListArray, VortexError>;
    fn into_varbinview(self) -> Result<VarBinViewArray, VortexError>;
    fn into_extension(self) -> Result<ExtensionArray, VortexError>;
}
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 IntoCanonical.

Required Methods§

fn into_null(self) -> Result<NullArray, VortexError>

fn into_bool(self) -> Result<BoolArray, VortexError>

fn into_primitive(self) -> Result<PrimitiveArray, VortexError>

fn into_struct(self) -> Result<StructArray, VortexError>

fn into_list(self) -> Result<ListArray, VortexError>

fn into_varbinview(self) -> Result<VarBinViewArray, VortexError>

fn into_extension(self) -> Result<ExtensionArray, VortexError>

Implementors§

§

impl<T> IntoArrayVariant for T
where T: IntoCanonical,