[−][src]Crate 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::SignRel; let a: <isize as SignRel>::Unsigned = 17; let b: <usize as SignRel>::Unsigned = 17; assert_eq!(17usize, a); assert_eq!(17usize, b);
Traits
SignRel | The relationship between integers differing only by signedness |