Function mz_repr::strconv::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.