Lines Matching refs:overflowing_sub
45 fn overflowing_sub(&self, v: &Self) -> (Self, bool); in overflowing_sub() method
48 overflowing_impl!(OverflowingSub, overflowing_sub, u8);
49 overflowing_impl!(OverflowingSub, overflowing_sub, u16);
50 overflowing_impl!(OverflowingSub, overflowing_sub, u32);
51 overflowing_impl!(OverflowingSub, overflowing_sub, u64);
52 overflowing_impl!(OverflowingSub, overflowing_sub, usize);
54 overflowing_impl!(OverflowingSub, overflowing_sub, u128);
56 overflowing_impl!(OverflowingSub, overflowing_sub, i8);
57 overflowing_impl!(OverflowingSub, overflowing_sub, i16);
58 overflowing_impl!(OverflowingSub, overflowing_sub, i32);
59 overflowing_impl!(OverflowingSub, overflowing_sub, i64);
60 overflowing_impl!(OverflowingSub, overflowing_sub, isize);
62 overflowing_impl!(OverflowingSub, overflowing_sub, i128);
92 fn overflowing_sub<T: OverflowingSub>(a: T, b: T) -> (T, bool) { in test_overflowing_traits() function
93 a.overflowing_sub(&b) in test_overflowing_traits()
100 assert_eq!(overflowing_sub(5i16, 2), (3, false)); in test_overflowing_traits()
101 assert_eq!(overflowing_sub(i16::MIN, 1), (i16::MAX, true)); in test_overflowing_traits()