to_be/terms.rs
1// terms.rs
2
3/// Directs custom truthiness behaviour.
4#[derive(Clone)]
5#[derive(Debug)]
6pub enum Terms<'a> {
7 /// Use the built-in comparison strings.
8 Default,
9 /// Use the given `*precise_strings` and, optionally, the given
10 /// `*lower_strings` to evaluate the truthiness of a given string.
11 Strings {
12 /// Precise (trimmed, case-sensitive) strings deemed "falsey".
13 falsey_precise_strings : &'a [&'a str],
14 /// Lowercase strings deemed "falsey" after ASCII lower-casing.
15 falsey_lowercase_strings : &'a [&'a str],
16 /// Precise (trimmed, case-sensitive) strings deemed "truey".
17 truey_precise_strings : &'a [&'a str],
18 /// Lowercase strings deemed "truey" after ASCII lower-casing.
19 truey_lowercase_strings : &'a [&'a str],
20 },
21}
22
23
24// ///////////////////////////// end of file //////////////////////////// //