Skip to main content

is_truthy

Function is_truthy 

Source
pub fn is_truthy(val: &str) -> bool
Expand description

Check if a string is truthy: 1 | true | on | yes, case-insensitive, surrounding whitespace ignored. Everything else is not truthy.