Function time::formatting::write_if_else
source ยท pub(crate) fn write_if_else(
output: &mut impl Write,
pred: bool,
true_bytes: &[u8],
false_bytes: &[u8],
) -> Result<usize>
Expand description
If pred
is true, write true_bytes
to the output. Otherwise, write false_bytes
.