pub const fn const_u128_to_str(n: u128) -> UtilBufWrapper<39>Expand description
Converts a u128 to a str as a byte array. The buffer is 39 bytes long. The maximum number of digits in a u128 is 39.
ยงExample
use local_fmt::utils::const_u128_to_str;
const BUFFER: &[u8] = const_u128_to_str(1234567890).buffer();
assert_eq!(BUFFER, b"1234567890");