Trait WrappingAdd

trait WrappingAdd: Sized + Add<Self, Output = Self>

Performs addition that wraps around on overflow.

Required Methods

fn wrapping_add(self: &Self, v: &Self) -> Self

Wrapping (modular) addition. Computes self + other, wrapping around at the boundary of the type.

Implementors