Skip to main content

boolean

Function boolean 

Source
pub fn boolean(s: &str) -> Result<bool, String>
Expand description

true or false, and nothing else.

Not YAML 1.1’s dozen spellings. on, yes and y are why a Norwegian country code parses as false, and a config file that accepts eleven ways to say the same thing has ten ways to typo it into the other one.