Skip to main content

PolarsCategoricalType

Trait PolarsCategoricalType 

Source
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§

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.

Implementors§

Source§

impl PolarsCategoricalType for Categorical8Type

Available on crate feature dtype-categorical only.
Source§

impl PolarsCategoricalType for Categorical16Type

Available on crate feature dtype-categorical only.
Source§

impl PolarsCategoricalType for Categorical32Type

Available on crate feature dtype-categorical only.