Stabilize feature `saturating_div` for rust 1.58.0 by kellerkindt · Pull Request...
source link: https://github.com/rust-lang/rust/pull/88624
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The tracking issue is #89381
This seems like a reasonable simple change(?). The feature saturating_div
was added as part of the ongoing effort to implement a Saturating
integer type (see #87921). The implementation has been discussed here and here. It extends the list of saturating operations on integer types (like saturating_add
, saturating_sub
, saturating_mul
, ...) by the function fn saturating_div(self, rhs: Self) -> Self
.
The stabilization of the feature saturating_int_impl
(for the Saturating
type) needs to have this stabilized first.
Closes #89381
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK