MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / format_bool

Function format_bool

src/repr/src/strconv.rs:105–111  ·  view source on GitHub ↗

Writes a boolean value into `buf`. `true` is encoded as the char `'t'` and `false` is encoded as the char `'f'`.

(buf: &mut F, b: bool)

Source from the content-addressed store, hash-verified

103/// `true` is encoded as the char `'t'` and `false` is encoded as the char
104/// `'f'`.
105pub fn format_bool<F>(buf: &mut F, b: bool) -> Nestable
106where
107 F: FormatBuffer,
108{
109 buf.write_str(format_bool_static(b));
110 Nestable::Yes
111}
112
113/// Parses an [`i16`] from `s`.
114///

Callers 2

stringify_datumFunction · 0.85
encode_textMethod · 0.85

Calls 2

format_bool_staticFunction · 0.85
write_strMethod · 0.45

Tested by

no test coverage detected