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.