Trait overflower_support::AddAssignPanic [] [src]

pub trait AddAssignPanic<RHS = Self> {
    fn add_assign_panic(&mut self, rhs: RHS);
}

Add a value to a given value in-place, panicking on overflow

This trait does the same as the std::ops::AddAssign trait for most values. it is specialized for integer types to panic on over- or underflow.

Required Methods

add the right-hand side value to this value, panicking on overflow

Implementors