const-layout 0.1.0

Compile Time checked Layout bounds
Documentation

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 {
    ...
}