Trait overflower_support::AddPanic [] [src]

pub trait AddPanic<RHS = Self> {
    type Output;
    fn add_panic(self, rhs: RHS) -> Self::Output;
}

Add two values, panicking on overflow

This does the same as the std::ops::Add 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 addition

Required Methods

add two values, panicking on overflow

Implementors