int_cmp 0.2.1

Small library for comparing unsigned integers with signed integers
Documentation
  • Coverage
  • 33.33%
    3 out of 9 items documented1 out of 9 items with examples
  • Size
  • Source code size: 145.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 745.93 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • mikastiv/int_cmp
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mikastiv

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!