polars_error/
constants.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Constant that help with creating error messages dependent on the host language.
#[cfg(feature = "python")]
pub static TRUE: &str = "True";
#[cfg(feature = "python")]
pub static FALSE: &str = "False";

#[cfg(not(feature = "python"))]
pub static TRUE: &str = "true";
#[cfg(not(feature = "python"))]
pub static FALSE: &str = "false";

#[cfg(not(feature = "python"))]
pub static LENGTH_LIMIT_MSG: &str =
    "Polars' maximum length reached. Consider compiling with 'bigidx' feature.";
#[cfg(feature = "python")]
pub static LENGTH_LIMIT_MSG: &str =
    "Polars' maximum length reached. Consider installing 'polars-u64-idx'.";