[][src]Trait typic::layout::Layout

pub trait Layout: Layout<Public> {
    type Size: Unsigned + ArrayLength<u8>;
    type Align: Unsigned;
}

Type-level information about type representation.

Associated Types

type Size: Unsigned + ArrayLength<u8>

The size of Self.

use typenum::*;
use static_assertions::*;
use typic::layout::Layout;

assert_type_eq_all!(U4, <[u16; 2] as Layout>::Size);

type Align: Unsigned

The minimum alignment of Self.

use typenum::*;
use static_assertions::*;
use typic::layout::Layout;

assert_type_eq_all!(U2, <[u16; 2] as Layout>::Align);
Loading content...

Implementors

impl<T> Layout for T where
    T: Layout<Public>, 
[src]

type Size = <T as Layout<Public>>::Size

type Align = <T as Layout<Public>>::Align

Loading content...