Files
rust/library/coretests/tests/num
Jonathan Brouwer 93b5d3fb05 Rollup merge of #161227 - folkertdev:complex-add-sub, r=nia-e
implement `Add` and `Sub` for `Complex`

tracking issue: https://github.com/rust-lang/rust/issues/154023

Adds the `Add` and `Sub` implementations described in the tracking issue. Some notes

- I also added a derive for `Eq`, which is useful for `Complex<{integer}>`
- The versions that add/sub by a scalar need a `Copy` bound. That seems fine for most actual use cases.

Apparently `num_complex` will `Clone` in these operations https://docs.rs/num-complex/latest/num_complex/struct.Complex.html#impl-Add%3CT%3E-for-%26Complex%3CT%3E, but that seems unlike `core` to me. Anyhow, libs can re-litigate that later.
2026-09-03 20:02:50 +02:00
..
2026-02-14 21:23:30 +01:00
2026-06-08 00:43:12 +02:00
2026-08-20 23:06:45 +02:00
2026-08-27 06:54:31 +02:00
…
…
…
…
…
2026-05-11 22:42:47 +02:00
…
…
…
…
…
…
…