3

Stabilize feature `saturating_div` for rust 1.58.0 by kellerkindt · Pull Request...

 2 years ago
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.

Copy link

Contributor

kellerkindt commented on Sep 3

edited by JohnTitor

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK