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