Trait polars::datatypes::PolarsDataType
source · pub unsafe trait PolarsDataType: Sized + Send + Sync {
type Physical<'a>: Debug + Clone;
type OwnedPhysical: Debug + Send + Sync + Clone + PartialEq;
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§
type Physical<'a>: Debug + Clone
type OwnedPhysical: Debug + Send + Sync + Clone + PartialEq
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 Methods§
Object Safety§
This trait is not object safe.
Implementors§
source§impl PolarsDataType for BinaryOffsetType
impl PolarsDataType for BinaryOffsetType
source§impl PolarsDataType for BinaryType
impl PolarsDataType for BinaryType
source§impl PolarsDataType for BooleanType
impl PolarsDataType for BooleanType
source§impl PolarsDataType for CategoricalType
impl PolarsDataType for CategoricalType
source§impl PolarsDataType for DateType
impl PolarsDataType for DateType
source§impl PolarsDataType for DatetimeType
impl PolarsDataType for DatetimeType
source§impl PolarsDataType for DecimalType
impl PolarsDataType for DecimalType
source§impl PolarsDataType for DurationType
impl PolarsDataType for DurationType
source§impl PolarsDataType for FixedSizeListType
Available on crate feature dtype-array
only.
impl PolarsDataType for FixedSizeListType
Available on crate feature
dtype-array
only.source§impl PolarsDataType for Float32Type
impl PolarsDataType for Float32Type
source§impl PolarsDataType for Float64Type
impl PolarsDataType for Float64Type
source§impl PolarsDataType for Int8Type
impl PolarsDataType for Int8Type
source§impl PolarsDataType for Int16Type
impl PolarsDataType for Int16Type
source§impl PolarsDataType for Int32Type
impl PolarsDataType for Int32Type
source§impl PolarsDataType for Int64Type
impl PolarsDataType for Int64Type
source§impl PolarsDataType for Int128Type
Available on crate feature dtype-decimal
only.
impl PolarsDataType for Int128Type
Available on crate feature
dtype-decimal
only.source§impl PolarsDataType for ListType
impl PolarsDataType for ListType
source§impl PolarsDataType for StringType
impl PolarsDataType for StringType
source§impl PolarsDataType for TimeType
impl PolarsDataType for TimeType
source§impl PolarsDataType for UInt8Type
impl PolarsDataType for UInt8Type
source§impl PolarsDataType for UInt16Type
impl PolarsDataType for UInt16Type
source§impl PolarsDataType for UInt32Type
impl PolarsDataType for UInt32Type
source§impl PolarsDataType for UInt64Type
impl PolarsDataType for UInt64Type
source§impl<T> PolarsDataType for ObjectType<T>where
T: PolarsObject,
Available on crate feature object
only.
impl<T> PolarsDataType for ObjectType<T>where
T: PolarsObject,
Available on crate feature
object
only.