pub trait NumericRangeBound:
Add<Output = Self>
+ AddAssign
+ Sub<Output = Self>
+ Copy
+ PartialEq
+ Ord {
const ZERO: Self;
const ONE: Self;
// Required method
fn saturating_sub(self, rhs: Self) -> Self;
}
Required Associated Constants§
Required Methods§
fn saturating_sub(self, rhs: Self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.