Trait binary_layout::FieldSize[][src]

pub trait FieldSize {
    const SIZE: usize;
}

This is an internal type that only exists because const_evaluatable_checked isn’t stabilized yet. TODO Once const_evaluatable_checked is stabilized, we should delete this and instead add a SIZE constant to Field.

Associated Constants

const SIZE: usize[src]

Returns the size the data type would occupy in a layout.

Loading content...

Implementations on Foreign Types

impl FieldSize for i8[src]

impl FieldSize for i16[src]

impl FieldSize for i32[src]

impl FieldSize for i64[src]

impl FieldSize for u8[src]

impl FieldSize for u16[src]

impl FieldSize for u32[src]

impl FieldSize for u64[src]

impl<const N: usize> FieldSize for [u8; N][src]

Loading content...

Implementors

Loading content...