pub trait TypedAssertEqual<N: IsInteger> { }
Expand description
A trait that asserts two integers are equal Example
use const_arithmetic::*;
let a = parse_integer!(3);
// This verifies that a is 3
fn is_3<T>(_a: T) where
T: IsInteger,
T: TypedAssertEqual<TypedInteger<_3, _0, _0, _0, _0, _0, _0, _0>>
{}
is_3(a);