diff options
| author | bors <bors@rust-lang.org> | 2021-08-28 23:39:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-28 23:39:02 +0000 |
| commit | 677b517e66fe9df0b2ce72f5ec57d52cc0da506e (patch) | |
| tree | 5ab3b7e2602c4b47de3587d95405807b9eb8ba1e /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 5eacec9ec7e112a0de1011519a57c45586d58414 (diff) | |
| parent | ce636f25e55493f42e7339cb533cb523879b62a5 (diff) | |
| download | rust-677b517e66fe9df0b2ce72f5ec57d52cc0da506e.tar.gz rust-677b517e66fe9df0b2ce72f5ec57d52cc0da506e.zip | |
Auto merge of #87921 - kellerkindt:master, r=kennytm
Add Saturating type (based on Wrapping type)
Tracking #87920
### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->
- [x] ~`impl Div for Saturating<T>` falls back on inner integer division - which seems alright?~
- [x] add `saturating_div`? (to respect division by `-1`)
- [x] There is no `::saturating_shl` and `::saturating_shr`. (How to) implement `Shl`, `ShlAssign`, `Shr` and `ShrAssign`?
- [naively](3f7d2ce28f8cf4dec56bf65fa2e6da0cf329ec55)
- [x] ~`saturating_neg` is only implemented on [signed integer types](https://doc.rust-lang.org/std/?search=saturating_n)~
- [x] Is the implementation copied over from the `Wrapping`-type correct for `Saturating`?
- [x] `Saturating::rotate_left`
- [x] `Saturating::rotate_right`
- [x] `Not`
- [x] `BitXorOr` and `BitXorOrAssign`
- [x] `BitOr` and `BitOrAssign`
- [x] `BitAnd` and `BitAndAssign`
- [x] `Saturating::swap_bytes`
- [x] `Saturating::reverse_bits`
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
