Function time::formatting::write_if

source ·
pub(crate) fn write_if(
    output: &mut impl Write,
    pred: bool,
    bytes: &[u8]
) -> Result<usize>
Available on crate feature formatting only.
Expand description

If pred is true, write all bytes to the output, returning the number of bytes written.