Files
rust/library/core/src
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-09-26 10:14:45 +02:00
2022-09-26 10:14:45 +02:00
2022-09-26 10:14:45 +02:00
2022-09-26 10:14:45 +02:00
2022-07-16 10:04:14 +09:00
2022-08-12 16:28:15 -04:00
2022-09-26 10:14:45 +02:00
2022-09-26 10:14:45 +02:00
2022-04-02 02:45:49 -04:00
2022-09-26 10:14:45 +02:00
2022-09-26 10:14:45 +02:00
2022-09-19 15:07:12 +02:00
2022-05-22 07:18:32 -03:00
2022-09-22 02:12:06 -04:00
2022-09-16 11:48:42 +08:00
2022-09-27 21:42:09 +02:00
2022-07-01 15:48:23 +02:00
2022-09-24 22:12:00 +02:00
2022-08-22 13:28:25 -07:00
2022-08-25 07:42:07 +01:00
2022-09-27 17:38:51 +02:00
2022-09-26 10:14:45 +02:00
2022-05-05 09:58:13 +10:00
2022-09-23 20:17:31 +02:00