Trait overflower_support::SubPanic
[−]
[src]
pub trait SubPanic<RHS = Self> { type Output; fn sub_panic(self, rhs: RHS) -> Self::Output; }
Subtract two values, panicking on overflow
This does the same as the std::ops::Sub
trait for all non-integer types.
It is specialized for integer types to panic on over- or underflow.
Associated Types
type Output
The output type of the subtraction
Required Methods
Implementors
impl<T, R> SubPanic<R> for T where
T: Sub<R>,impl SubPanic<u8> for u8
impl SubPanic<u16> for u16
impl SubPanic<u32> for u32
impl SubPanic<u64> for u64
impl SubPanic<usize> for usize
impl SubPanic<i8> for i8
impl SubPanic<i16> for i16
impl SubPanic<i32> for i32
impl SubPanic<i64> for i64
impl SubPanic<isize> for isize