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
type Output
The output type of the addition
Required Methods
Implementors
impl<T, R> AddPanic<R> for T where
T: Add<R>,impl AddPanic<u8> for u8
impl AddPanic<u16> for u16
impl AddPanic<u32> for u32
impl AddPanic<u64> for u64
impl AddPanic<usize> for usize
impl AddPanic<i8> for i8
impl AddPanic<i16> for i16
impl AddPanic<i32> for i32
impl AddPanic<i64> for i64
impl AddPanic<isize> for isize