Trait polars::prelude::datatypes::PolarsDataType

source ·
pub unsafe trait PolarsDataType: Sized + Send + Sync {
    type Physical<'a>: Debug + Clone;
    type ZeroablePhysical<'a>: Zeroable + From<Self::Physical<'a>>;
    type Array: for<'a> StaticArray<ValueT<'a> = Self::Physical<'a>, ZeroableValueT<'a> = Self::ZeroablePhysical<'a>>;
    type Structure;

    // Required method
    fn get_dtype() -> DataType
       where Self: Sized;
}
Expand description

§Safety

The StaticArray and dtype return must be correct.

Required Associated Types§

source

type Physical<'a>: Debug + Clone

source

type ZeroablePhysical<'a>: Zeroable + From<Self::Physical<'a>>

source

type Array: for<'a> StaticArray<ValueT<'a> = Self::Physical<'a>, ZeroableValueT<'a> = Self::ZeroablePhysical<'a>>

source

type Structure

Required Methods§

source

fn get_dtype() -> DataType
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PolarsDataType for BinaryOffsetType

§

type Physical<'a> = &'a [u8]

§

type ZeroablePhysical<'a> = Option<&'a [u8]>

§

type Array = BinaryArray<i64>

§

type Structure = Flat

source§

impl PolarsDataType for BinaryType

§

type Physical<'a> = &'a [u8]

§

type ZeroablePhysical<'a> = Option<&'a [u8]>

§

type Array = BinaryViewArrayGeneric<[u8]>

§

type Structure = Flat

source§

impl PolarsDataType for BooleanType

source§

impl PolarsDataType for CategoricalType

source§

impl PolarsDataType for DateType

source§

impl PolarsDataType for DatetimeType

source§

impl PolarsDataType for DecimalType

source§

impl PolarsDataType for DurationType

source§

impl PolarsDataType for FixedSizeListType

Available on crate feature dtype-array only.
source§

impl PolarsDataType for Float32Type

source§

impl PolarsDataType for Float64Type

source§

impl PolarsDataType for Int8Type

source§

impl PolarsDataType for Int16Type

source§

impl PolarsDataType for Int32Type

source§

impl PolarsDataType for Int64Type

source§

impl PolarsDataType for Int128Type

Available on crate feature dtype-decimal only.
source§

impl PolarsDataType for ListType

source§

impl PolarsDataType for StringType

source§

impl PolarsDataType for TimeType

source§

impl PolarsDataType for UInt8Type

source§

impl PolarsDataType for UInt16Type

source§

impl PolarsDataType for UInt32Type

source§

impl PolarsDataType for UInt64Type

source§

impl<T> PolarsDataType for ObjectType<T>
where T: PolarsObject,

Available on crate feature object only.