pub trait WrappingAdd: Sized + Add<Self, Output = Self> {
    // Required method
    fn wrapping_add(&self, v: &Self) -> Self;
}
Expand description

Performs addition that wraps around on overflow.

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

impl WrappingAdd for u64

source§

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

source§

impl WrappingAdd for u128

source§

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

source§

impl WrappingAdd for i128

source§

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

source§

impl<T: WrappingAdd> WrappingAdd for Wrapping<T>where Wrapping<T>: Add<Output = Wrapping<T>>,

source§

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

source§

impl WrappingAdd for u8

source§

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

source§

impl WrappingAdd for i64

source§

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

source§

impl WrappingAdd for u16

source§

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

source§

impl WrappingAdd for i32

source§

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

source§

impl WrappingAdd for u32

source§

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

source§

impl WrappingAdd for isize

source§

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

source§

impl WrappingAdd for usize

source§

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

source§

impl WrappingAdd for i8

source§

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

source§

impl WrappingAdd for i16

source§

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

Implementors§