int_cmp

Crates.ioint_cmp
lib.rsint_cmp
version0.2.1
sourcesrc
created_at2020-10-04 00:48:22.270258
updated_at2020-10-05 00:16:53.963732
descriptionSmall library for comparing unsigned integers with signed integers
homepage
repositoryhttps://github.com/Mikastiv/int_cmp
max_upload_size
id295926
size145,129
(Mikastiv)

documentation

README

int_cmp Crates.io

Rust Integer Types Comparison Library

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));

Changelog

  • Added support for usize

Contributing

Any Pull Request is welcome, however small your contribution may be!

Commit count: 35

cargo fmt