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>
Available on crate feature formatting only.
Expand description

If pred is true, write true_bytes to the output. Otherwise, write false_bytes.