Skip to main content

FixedSize

Trait FixedSize 

Source
pub trait FixedSize {
    const SIZE: usize;
}

Required Associated Constants§

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 FixedSize for bool

Source§

const SIZE: usize = 1

Source§

impl FixedSize for f32

Source§

const SIZE: usize = 4

Source§

impl FixedSize for f64

Source§

const SIZE: usize = 8

Source§

impl FixedSize for i8

Source§

const SIZE: usize = 1

Source§

impl FixedSize for i16

Source§

const SIZE: usize = 2

Source§

impl FixedSize for i32

Source§

const SIZE: usize = 4

Source§

impl FixedSize for i128

Source§

const SIZE: usize = 16

Source§

impl FixedSize for u8

Source§

const SIZE: usize = 1

Source§

impl FixedSize for u16

Source§

const SIZE: usize = 2

Source§

impl FixedSize for u32

Source§

const SIZE: usize = 4

Source§

impl FixedSize for u128

Source§

const SIZE: usize = 16

Implementors§