Module dec_int

Source
Expand description

Efficient decimal integer formatting.

ยงSafety

This uses CStr::from_bytes_with_nul_unchecked and str::from_utf8_uncheckedon the buffer that it filled itself.

Modulesยง

private ๐Ÿ”’

Structsยง

DecInt
Format an integer into a decimal Path component, without constructing a temporary PathBuf or String.

Constantsยง

BUF_LEN ๐Ÿ”’
Enough to hold an {u,i}64 and NUL terminator.
I64_MAX_STR_LEN ๐Ÿ”’
Maximum length of a formatted i64.
U64_MAX_STR_LEN ๐Ÿ”’
Maximum length of a formatted u64.

Traitsยง

Integer
An integer that can be used by DecInt::new.