Trait overflower_support::AddAssignWrap [] [src]

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

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

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

Required Methods

add a value to a given value in-place, wrapping on overflow

Implementors