| Crates.io | const-layout |
| lib.rs | const-layout |
| version | 0.1.1 |
| created_at | 2020-03-13 23:29:35.808493+00 |
| updated_at | 2020-04-23 06:43:13.865965+00 |
| description | Compile Time checked Layout bounds |
| homepage | |
| repository | https://github.com/lperlaki/const-layout-rs |
| max_upload_size | |
| id | 218393 |
| size | 3,496 |
Compile time checked Layout bounds.
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 {
...
}