mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-29 23:23:51 +00:00
add `unsigned_abs` to signed integers Mentioned on rust-lang/rfcs#2914 This PR simply adds an `unsigned_abs` to signed integers function which returns the correct absolute value as a unsigned integer.