Function zerotrie::helpers::const_fmt_int

source ยท
pub(crate) const fn const_fmt_int<const M: usize, const N: usize>(
    prefix: [u8; M],
    value: usize,
) -> [u8; N]
Expand description

Formats a usize as a string of length N, padded with spaces, with the given prefix.

If the string is too short, the function may panic. To prevent this, N should be MAX_USIZE_LEN_AS_DIGITS larger than M.