Skip to main content

parse_bool

Function parse_bool 

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

Parses a bool from s.

The accepted values are “true”, “false”, “yes”, “no”, “on”, “off”, “1”, and “0”, or any unambiguous prefix of one of those values. Leading or trailing whitespace is permissible.