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

pub trait Layout {
    type Size: Unsigned;
    type Align: Unsigned;
}

Type-level information about type representation.

Associated Types

type Size: Unsigned

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, 
[src]

type Size = <T as Layout>::Size

type Align = <T as Layout>::Align

Loading content...