uabs 3.0.0

Absolute value function that returns an unsigned integer
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 18.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 595.31 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
  • npmccallum/uabs
    0 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • npmccallum

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

uabs

This crate provides the UnsignedAbs trait containing a function uabs() which calculates the absolute value of the input and returns it as an unsigned integer of the same size as the input. For example:

use uabs::Uabs;

let x: i8 = -128;
let y: u8 = x.uabs();
assert_eq!(y, 128);

License: Apache-2.0