Skip to content

Trait expressing relationship between integers of different signedness

License

Notifications You must be signed in to change notification settings

npmccallum/signrel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Trait expressing relationship between integers of different signedness

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages