Formats a boolean `b` for display.
(b: bool)
| 32 | |
| 33 | /// Formats a boolean `b` for display. |
| 34 | pub fn format_boolean(b: bool) -> &'static str { |
| 35 | if b { "TRUE" } else { "FALSE" } |
| 36 | } |
| 37 | |
| 38 | /// Parses a string `s` as a boolean. |
| 39 | pub fn parse_boolean(s: &str) -> Result<bool, String> { |