pub trait Integer: Sealed {
const MAX_STR_LEN: usize;
}Expand description
An integer that can be written into an itoa::Buffer.
This trait is sealed and cannot be implemented for types outside of itoa.
Required Associated Constants§
Sourceconst MAX_STR_LEN: usize
const MAX_STR_LEN: usize
The maximum length of string that formatting an integer of this type can produce on the current target platform.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Integer for isize
Available on 64-bit only.
impl Integer for isize
Available on 64-bit only.
const MAX_STR_LEN: usize = <i64 as Integer>::MAX_STR_LEN
Source§impl Integer for usize
Available on 64-bit only.
impl Integer for usize
Available on 64-bit only.