Trait polars_core::datatypes::PolarsDataType

source ·
pub unsafe trait PolarsDataType: Send + Sync + Sized {
    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 IsNested;
    type HasViews;

    // 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 IsNested

source

type HasViews

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 IsNested = FalseT

§

type HasViews = FalseT

source§

impl PolarsDataType for BinaryType

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 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: PolarsObject> PolarsDataType for ObjectType<T>

Available on crate feature object only.