itoa

Trait Integer

Source
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§

Source

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 i8

Source§

const MAX_STR_LEN: usize = 4usize

Source§

impl Integer for i16

Source§

const MAX_STR_LEN: usize = 6usize

Source§

impl Integer for i32

Source§

const MAX_STR_LEN: usize = 11usize

Source§

impl Integer for i64

Source§

const MAX_STR_LEN: usize = 20usize

Source§

impl Integer for i128

Source§

const MAX_STR_LEN: usize = 40usize

Source§

impl Integer for isize

Source§

const MAX_STR_LEN: usize = 20usize

Source§

impl Integer for u8

Source§

const MAX_STR_LEN: usize = 3usize

Source§

impl Integer for u16

Source§

const MAX_STR_LEN: usize = 5usize

Source§

impl Integer for u32

Source§

const MAX_STR_LEN: usize = 10usize

Source§

impl Integer for u64

Source§

const MAX_STR_LEN: usize = 20usize

Source§

impl Integer for u128

Source§

const MAX_STR_LEN: usize = 39usize

Source§

impl Integer for usize

Source§

const MAX_STR_LEN: usize = 20usize

Implementors§