pub unsafe trait PolarsDataType:
Sized
+ Send
+ Sync
+ 'static {
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;
type IsStruct;
type IsObject;
type IsLogical;
// 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
type IsStruct
type IsObject
type IsLogical
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.