MCPcopy Index your code
hub / github.com/endbasic/endbasic / format_boolean

Function format_boolean

std/src/strings.rs:34–36  ·  view source on GitHub ↗

Formats a boolean `b` for display.

(b: bool)

Source from the content-addressed store, hash-verified

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

Callers 2

execMethod · 0.85
execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected