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

The output type of the subtraction

Required Methods

subtract two values, panicking on overflow

Implementors