time::formatting

Function format_number

Source
pub(crate) fn format_number<const WIDTH: u8>(
    output: &mut impl Write,
    value: impl Integer + DigitCount + Copy,
    padding: Padding,
) -> Result<usize, Error>
Available on crate feature formatting only.
Expand description

Format a number with the provided padding and width.

The sign must be written by the caller.