pub unsafe trait PolarsCategoricalType: PolarsDataType {
type Native: NumericNative + CatNative + DictionaryKey + PartialEq + Eq + Hash;
type PolarsPhysical: PolarsIntegerType<Native = Self::Native>;
// Required method
fn physical() -> CategoricalPhysical;
}Expand description
§Safety
The physical() return type must be correct for Native.
Required Associated Types§
type Native: NumericNative + CatNative + DictionaryKey + PartialEq + Eq + Hash
type PolarsPhysical: PolarsIntegerType<Native = Self::Native>
Required Methods§
fn physical() -> CategoricalPhysical
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.
Implementors§
Source§impl PolarsCategoricalType for Categorical8Type
Available on crate feature dtype-categorical only.
impl PolarsCategoricalType for Categorical8Type
Available on crate feature
dtype-categorical only.Source§impl PolarsCategoricalType for Categorical16Type
Available on crate feature dtype-categorical only.
impl PolarsCategoricalType for Categorical16Type
Available on crate feature
dtype-categorical only.type Native = u16
type PolarsPhysical = UInt16Type
Source§impl PolarsCategoricalType for Categorical32Type
Available on crate feature dtype-categorical only.
impl PolarsCategoricalType for Categorical32Type
Available on crate feature
dtype-categorical only.