Skip to main content

parse_bool

Function parse_bool 

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

Parse a boolean from a string. Accepts “true”, “false”, “1”, “0” (case-insensitive for true/false).