John Millikin 4e2797dd76 Implement Neg for signed non-zero integers.
Negating 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 `Neg` for `NonZeroI{N}`.

The new `impl` is marked as stable because trait implementations
for two stable types can't be marked unstable.
2023-04-20 14:27:29 +09:00
..
2023-04-16 11:38:52 +00:00
2023-02-26 13:50:08 +01:00
2022-10-08 11:48:53 +00:00
2022-12-28 09:18:43 -05:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2022-12-28 09:18:43 -05:00
2023-04-16 11:38:52 +00:00
2022-09-27 19:23:52 +00:00
2022-12-30 14:00:42 +01:00
2023-01-02 10:33:23 -08:00
2023-04-16 11:38:52 +00:00