bounded 0.2.0

Bounded numeric types
1
2
3
4
5
6
7
8
9
use std::ops::Div;

/// Performs division that saturates at the numeric bounds instead of
/// overflowing
#[cfg(feature = "saturating-div")]
pub trait SaturatingDiv: Sized + Div<Self, Output = Self> {
    #[must_use]
    fn saturating_div(&self, rhs: &Self) -> Self;
}