Expand description
This crate help you check type equality at compile time.
Usage:
use compile_type_eq::*;
assert_types_eq::<i32, i32>();
assert_types_not_eq::<i32, u32, _>();
ⓘ
use compile_type_eq::*;
assert_types_eq::<i32, u32>();
assert_types_not_eq::<i32, i32, _>();
For more complicated examples see examples folder
Modules§
- how_
it_ works - Learn how comparison works.
Structs§
- TypesEq
- Use this struct when you want to check that two types are equal.
Traits§
- Compile
Eq - Trait for compile-time equality checking
- Compile
EqResult - Trait is used to be affirmative that there are no external implementations for
CompileEq
.
Functions§
- assert_
types_ eq - Checks that the types are eq.
- assert_
types_ not_ eq - Checks that the types are not eq.