#compile-time #layout #const #bounds #checked #input #size

yanked const-layout

Compile Time checked Layout bounds

0.1.1 Apr 23, 2020
0.1.0 Mar 13, 2020

#34 in #checked

MIT license

4KB

Const Layout

Compile time checked Layout bounds.

Example

the input and output type must habe the same size

use const_layout::EqSize;

fn must_have_same_size<I: EqSize<O>, O>(input: I) -> O {
    ...
}

No runtime deps