Files
rust/library/core/src/num
Dylan DPC 609152aa8a Rollup merge of #102342 - jmillikin:nonzero-negation, r=scottmcm
Add negation methods for signed non-zero integers.

Performing negation with defined wrapping semantics (such as `wrapping_neg()`) on a non-zero integer currently requires unpacking to a primitive and re-wrapping. Since negation of non-zero signed integers always produces a non-zero result, it is safe to implement the various `*_neg()` methods for `NonZeroI{N}`.

I'm not sure what to do about the `#[unstable(..., issue = "none")]` here -- should I file a tracking issue, or is that handled by the Rust dev team?

ACP: https://github.com/rust-lang/libs-team/issues/105
2022-09-29 18:13:19 +05:30
..
2022-04-14 01:33:13 -04:00
2022-08-09 10:20:49 -07:00
2021-07-27 16:02:35 -04:00
2022-09-26 10:14:45 +02:00
2022-09-11 04:13:33 +02:00
2022-09-11 04:13:33 +02:00
2021-12-14 16:40:43 +01:00
2022-01-15 17:14:13 -08:00
2022-09-26 10:14:45 +02:00