Skip to main content

parse_bool

Function parse_bool 

Source
pub fn parse_bool(key: &str, raw: &str) -> Result<bool, String>
Expand description

Parse raw as the value of the boolean key.

Accepts exactly true or false. Anything else is an error naming key and the two accepted words.