Trait itoa::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.

Object Safety§

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§