1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use polars_core::prelude::*;

#[cfg(feature = "list_any_all")]
mod any_all;
mod count;
mod dispersion;
#[cfg(feature = "hash")]
pub(crate) mod hash;
mod min_max;
mod namespace;
#[cfg(feature = "list_sets")]
mod sets;
mod sum_mean;
#[cfg(feature = "list_to_struct")]
mod to_struct;

#[cfg(feature = "list_count")]
pub use count::*;
#[cfg(not(feature = "list_count"))]
use count::*;
pub use namespace::*;
#[cfg(feature = "list_sets")]
pub use sets::*;
#[cfg(feature = "list_to_struct")]
pub use to_struct::*;

pub trait AsList {
    fn as_list(&self) -> &ListChunked;
}

impl AsList for ListChunked {
    fn as_list(&self) -> &ListChunked {
        self
    }
}