Crates.io | int_cmp |
lib.rs | int_cmp |
version | 0.2.1 |
source | src |
created_at | 2020-10-04 00:48:22.270258 |
updated_at | 2020-10-05 00:16:53.963732 |
description | Small library for comparing unsigned integers with signed integers |
homepage | |
repository | https://github.com/Mikastiv/int_cmp |
max_upload_size | |
id | 295926 |
size | 145,129 |
Rust Integer Types Comparison Library
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));
Any Pull Request is welcome, however small your contribution may be!