MCPcopy Index your code
hub / github.com/RustPython/RustPython / format_bool

Function format_bool

crates/common/src/format.rs:1446–1448  ·  view source on GitHub ↗
(text: &str, value: bool)

Source from the content-addressed store, hash-verified

1444 }
1445
1446 fn format_bool(text: &str, value: bool) -> Result<String, FormatSpecError> {
1447 FormatSpec::parse(text).and_then(|spec| spec.format_bool(value))
1448 }
1449
1450 #[test]
1451 fn test_format_bool() {

Callers

nothing calls this directly

Calls 2

format_boolMethod · 0.80
parseFunction · 0.50

Tested by

no test coverage detected