WrappingAdd

Trait WrappingAdd 

Source
pub trait WrappingAdd {
    // Required method
    fn wrapping_add(&self, rhs: Self) -> Self;
}
Expand description

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

Required Methods§

Source

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WrappingAdd for i8

Source§

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

Source§

impl WrappingAdd for i16

Source§

fn wrapping_add(&self, other: i16) -> i16

Source§

impl WrappingAdd for i32

Source§

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

Source§

impl WrappingAdd for i64

Source§

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

Source§

impl WrappingAdd for i128

Source§

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

Source§

impl WrappingAdd for u8

Source§

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

Source§

impl WrappingAdd for u16

Source§

fn wrapping_add(&self, other: u16) -> u16

Source§

impl WrappingAdd for u32

Source§

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

Source§

impl WrappingAdd for u64

Source§

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

Source§

impl WrappingAdd for u128

Source§

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

Implementors§