pub fn str_is_truthy(val: &str) -> bool
Expand description
Return true for all the stringly values typically associated with true
aka YAML booleans
for value in ["1", "true", "on", "YES", "Y"] {
assert!(str_is_truthy(value));
}
for value in ["0", "FALSE", "off", "NO", "n", "bork"] {
assert!(!str_is_truthy(value));
}