Trait overflower_support::AddWrap [] [src]

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

Add two values, wrapping on overflow

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

Associated Types

The result type of the addition

Required Methods

add two values, wrap on overflow

Implementors