mz_repr::strconv

Function format_bool_static

Source
pub fn format_bool_static(b: bool) -> &'static str
Expand description

Like format_bool, but returns a string with a static lifetime.

This function should be preferred to format_bool when applicable, as it avoids an allocation.