itoap

Trait Integer

Source
pub trait Integer: Sealed {
    const MAX_LEN: usize;
}
Expand description

An integer that can be written to pointer.

Required Associated Constants§

Source

const MAX_LEN: usize

Maximum digits of the integer

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_LEN: usize = 4usize

Source§

impl Integer for i16

Source§

const MAX_LEN: usize = 6usize

Source§

impl Integer for i32

Source§

const MAX_LEN: usize = 11usize

Source§

impl Integer for i64

Source§

const MAX_LEN: usize = 21usize

Source§

impl Integer for i128

Source§

const MAX_LEN: usize = 40usize

Source§

impl Integer for isize

Source§

const MAX_LEN: usize = 21usize

Source§

impl Integer for u8

Source§

const MAX_LEN: usize = 3usize

Source§

impl Integer for u16

Source§

const MAX_LEN: usize = 5usize

Source§

impl Integer for u32

Source§

const MAX_LEN: usize = 10usize

Source§

impl Integer for u64

Source§

const MAX_LEN: usize = 20usize

Source§

impl Integer for u128

Source§

const MAX_LEN: usize = 39usize

Source§

impl Integer for usize

Source§

const MAX_LEN: usize = 20usize

Implementors§