Lines Matching refs:SaturatingSub
70 pub trait SaturatingSub: Sized + Sub<Self, Output = Self> { interface
76 saturating_impl!(SaturatingSub, saturating_sub, u8);
77 saturating_impl!(SaturatingSub, saturating_sub, u16);
78 saturating_impl!(SaturatingSub, saturating_sub, u32);
79 saturating_impl!(SaturatingSub, saturating_sub, u64);
80 saturating_impl!(SaturatingSub, saturating_sub, usize);
82 saturating_impl!(SaturatingSub, saturating_sub, u128);
84 saturating_impl!(SaturatingSub, saturating_sub, i8);
85 saturating_impl!(SaturatingSub, saturating_sub, i16);
86 saturating_impl!(SaturatingSub, saturating_sub, i32);
87 saturating_impl!(SaturatingSub, saturating_sub, i64);
88 saturating_impl!(SaturatingSub, saturating_sub, isize);
90 saturating_impl!(SaturatingSub, saturating_sub, i128);
122 fn saturating_sub<T: SaturatingSub>(a: T, b: T) -> T { in test_saturating_traits()