pub unsafe trait PolarsDataType: Send + Sync + Sized {
    type Physical<'a>;
    type Array: for<'a> StaticArray<ValueT<'a> = Self::Physical<'a>>;

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

source

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

Required Methods§

source

fn get_dtype() -> DataTypewhere Self: Sized,

Implementors§

source§

impl PolarsDataType for BinaryType

§

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

§

type Array = BinaryArray<i64>

source§

impl PolarsDataType for BooleanType

§

type Physical<'a> = bool

§

type Array = BooleanArray

source§

impl PolarsDataType for CategoricalType

§

type Physical<'a> = u32

§

type Array = PrimitiveArray<u32>

source§

impl PolarsDataType for DateType

§

type Physical<'a> = i32

§

type Array = PrimitiveArray<i32>

source§

impl PolarsDataType for DatetimeType

§

type Physical<'a> = i64

§

type Array = PrimitiveArray<i64>

source§

impl PolarsDataType for DecimalType

§

type Physical<'a> = i128

§

type Array = PrimitiveArray<i128>

source§

impl PolarsDataType for DurationType

§

type Physical<'a> = i64

§

type Array = PrimitiveArray<i64>

source§

impl PolarsDataType for FixedSizeListType

Available on crate feature dtype-array only.
§

type Physical<'a> = Box<dyn Array, Global>

§

type Array = FixedSizeListArray

source§

impl PolarsDataType for Float32Type

§

type Physical<'a> = f32

§

type Array = PrimitiveArray<f32>

source§

impl PolarsDataType for Float64Type

§

type Physical<'a> = f64

§

type Array = PrimitiveArray<f64>

source§

impl PolarsDataType for Int8Type

§

type Physical<'a> = i8

§

type Array = PrimitiveArray<i8>

source§

impl PolarsDataType for Int16Type

§

type Physical<'a> = i16

§

type Array = PrimitiveArray<i16>

source§

impl PolarsDataType for Int32Type

§

type Physical<'a> = i32

§

type Array = PrimitiveArray<i32>

source§

impl PolarsDataType for Int64Type

§

type Physical<'a> = i64

§

type Array = PrimitiveArray<i64>

source§

impl PolarsDataType for Int128Type

Available on crate feature dtype-decimal only.
§

type Physical<'a> = i128

§

type Array = PrimitiveArray<i128>

source§

impl PolarsDataType for ListType

§

type Physical<'a> = Box<dyn Array, Global>

§

type Array = ListArray<i64>

source§

impl PolarsDataType for TimeType

§

type Physical<'a> = i64

§

type Array = PrimitiveArray<i64>

source§

impl PolarsDataType for UInt8Type

§

type Physical<'a> = u8

§

type Array = PrimitiveArray<u8>

source§

impl PolarsDataType for UInt16Type

§

type Physical<'a> = u16

§

type Array = PrimitiveArray<u16>

source§

impl PolarsDataType for UInt32Type

§

type Physical<'a> = u32

§

type Array = PrimitiveArray<u32>

source§

impl PolarsDataType for UInt64Type

§

type Physical<'a> = u64

§

type Array = PrimitiveArray<u64>

source§

impl PolarsDataType for Utf8Type

§

type Physical<'a> = &'a str

§

type Array = Utf8Array<i64>

source§

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

Available on crate feature object only.
§

type Physical<'a> = &'a T

§

type Array = ObjectArray<T>