StaticSize

Trait StaticSize 

Source
pub trait StaticSize: Sized {
    const STATIC_SIZE: PointerType;
}

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

Source§

impl StaticSize for char

Source§

impl StaticSize for f32

Source§

impl StaticSize for f64

Source§

impl StaticSize for i8

Source§

impl StaticSize for i16

Source§

impl StaticSize for i32

Source§

impl StaticSize for i64

Source§

impl StaticSize for u8

Source§

impl StaticSize for u16

Source§

impl StaticSize for u32

Source§

impl StaticSize for u64

Source§

impl StaticSize for ()

Source§

impl<'a> StaticSize for &'a str

Source§

impl<'a, T1, T2> StaticSize for (T1, T2)
where T1: Read<'a> + StaticSize, T2: Read<'a> + StaticSize,

Source§

impl<'a, T> StaticSize for Option<T>
where T: StaticSize,

Implementors§