Closed
Description
This is a tracking issue for the RFC "928" (rust-lang/rfcs#928).
The feature gate for the issue is #![feature(saturating_int_impl)]
.
About tracking issues
Tracks progress for Saturating
type analogue to #32463
Unresolved Questions
- What is the MVP for stabilization?
- What is the correct impl of
Shl
andShalAssign
forSaturating<signed>
Add Saturating type (based on Wrapping type) #87921 (comment)
Possible solution: Tracking Issue forSaturating
type #87920 (comment)
@avitex https://github.com/avitex/rfcs/blob/master/text/0000-saturating-bit-shifts.md
Steps
- implement (Add Saturating type (based on Wrapping type) #87921)
- Stabilize
saturating_div
(Tracking Issue forsaturating_div
#89381) - Split of saturating bit shifts (Implement
saturating_shl
andsaturating_shr
on ints #103441) - Stabilize
saturating_int_impl
Implementation history
- Implementation Add Saturating type (based on Wrapping type) #87921
- Adds
struct Saturating
andfeature(saturating_int_impl)
- Adds
- Stabilization (TODO)
Activity