typelayout 0.1.0

type-level layout reflection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;
use frunk_core::generic::Generic;

impl<T: Generic + ReprC> Align<C> for T
where
  <Self as Generic>::Repr: Align<C>
{
  type Value = <<Self as Generic>::Repr as Align<C>>::Value;
}

impl<T: Generic + ReprC> Size<C> for T
where
  <Self as Generic>::Repr: Size<C>
{
  type Value = <<Self as Generic>::Repr as Size<C>>::Value;
}