| Crates.io | compile_type_eq |
| lib.rs | compile_type_eq |
| version | 0.1.1 |
| created_at | 2020-12-25 22:15:16.882882+00 |
| updated_at | 2020-12-25 23:22:39.08003+00 |
| description | Compile-time type equality checking |
| homepage | |
| repository | |
| max_upload_size | |
| id | 327284 |
| size | 6,310 |
This crate help you check type equality at compile time.
Example of usage:
use compile_type_eq::*;
assert_types_eq::<i32, i32>();
assert_types_not_eq::<i32, u32, _>();
This will fail:
use compile_type_eq::*;
assert_types_eq::<i32, u32>();
assert_types_not_eq::<i32, i32, _>();
For more complicated examples see examples folder