signrel 2.0.0

Trait expressing relationship between integers of different signedness
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 2 items with examples
  • Size
  • Source code size: 17.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 620.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • npmccallum/signrel
    1 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • npmccallum

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

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

License: Apache-2.0