Skip to main content

is_truthy

Function is_truthy 

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

Whether an environment value reads as “on”.

The spelling every switch in the tree already accepts, gathered here so a ninth one cannot quietly accept a different set. That claim used to be false: five sites had their own copy of this matches!, two of them in this very crate, and this one had no callers outside its own module.