signrel
This crate provides the SignRel
trait which maps relationships between
integers that only differ by signedness. For example, both a
and b
in
this example have the type usize
:
use SignRel;
let a: Unsigned = 17;
let b: Unsigned = 17;
assert_eq!;
assert_eq!;
License: Apache-2.0