[][src]Crate int_cmp

Allow for comparisons between an unsigned integer and a signed integer

Example

use int_cmp::IntCmp;

let a = -25_i8;
let b = 64_u8;
assert!(a.cmp_lt(b));

let x = -45000_i32;
let y = 2560000_u64;
assert!(x.cmp_ne(y));

Traits

IntCmp

Comparison trait for integer types

Integer

Standard integer type trait