[][src]Type Definition typic::layout::SizeOf

type SizeOf<T> = <T as Layout>::Size;

Get the size of T (if T: Layout).

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

assert_type_eq_all!(U4, SizeOf<[u16; 2]>);