polars_core/chunked_array/logical/categorical/ops/
full.rs

1use super::*;
2
3impl CategoricalChunked {
4    pub fn full_null(
5        name: PlSmallStr,
6        is_enum: bool,
7        length: usize,
8        ordering: CategoricalOrdering,
9    ) -> CategoricalChunked {
10        let cats = UInt32Chunked::full_null(name, length);
11
12        unsafe {
13            CategoricalChunked::from_cats_and_rev_map_unchecked(
14                cats,
15                Arc::new(RevMapping::default()),
16                is_enum,
17                ordering,
18            )
19        }
20    }
21}