Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-ops/src/chunked_array/list/mod.rs
8408 views
1
use polars_core::prelude::*;
2
3
#[cfg(feature = "list_any_all")]
4
mod any_all;
5
mod count;
6
mod dispersion;
7
mod get;
8
mod min_max;
9
mod namespace;
10
#[cfg(feature = "list_sets")]
11
mod sets;
12
mod sum_mean;
13
#[cfg(feature = "list_to_struct")]
14
mod to_struct;
15
16
#[cfg(feature = "list_count")]
17
pub use count::*;
18
#[cfg(not(feature = "list_count"))]
19
use count::*;
20
pub use get::*;
21
pub use namespace::*;
22
#[cfg(feature = "list_sets")]
23
pub use sets::*;
24
#[cfg(feature = "list_to_struct")]
25
pub use to_struct::*;
26
27
pub trait AsList {
28
fn as_list(&self) -> &ListChunked;
29
}
30
31
impl AsList for ListChunked {
32
fn as_list(&self) -> &ListChunked {
33
self
34
}
35
}
36
37