Skip to content

Commit 709a6c9

Browse files
committed
Add Saturating type (based on Wrapping type)
1 parent ae90dcf commit 709a6c9

File tree

4 files changed

+821
-0
lines changed

4 files changed

+821
-0
lines changed

library/core/src/num/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ mod uint_macros; // import uint_impl!
4343
mod error;
4444
mod int_log10;
4545
mod nonzero;
46+
#[unstable(feature = "saturating_int_impl", issue = "87920")]
47+
mod saturating;
4648
mod wrapping;
4749

50+
#[unstable(feature = "saturating_int_impl", issue = "87920")]
51+
pub use saturating::Saturating;
4852
#[stable(feature = "rust1", since = "1.0.0")]
4953
pub use wrapping::Wrapping;
5054

0 commit comments

Comments
 (0)