Open davidzeng0 opened 3 months ago
Feature gate: #![feature(unsigned_signed_diff)]
#![feature(unsigned_signed_diff)]
This is a tracking issue for https://github.com/rust-lang/libs-team/issues/381
impl uX { pub const fn overflowing_signed_diff(self, rhs: Self) -> (iX, bool); pub const fn saturating_signed_diff(self, rhs: Self) -> iX; pub const fn checked_signed_diff(self, rhs: Self) -> Option<iX>; }
For completeness, I could also implement https://github.com/rust-lang/libs-team/issues/381#issuecomment-2136024294
impl iX { fn checked_unsigned_diff(self, rhs: Self) -> Option<uX>; }
Feature gate:
#![feature(unsigned_signed_diff)]
This is a tracking issue for https://github.com/rust-lang/libs-team/issues/381
Public API
Steps / History
Unresolved Questions