WrappingAdd

Trait WrappingAdd 

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

Required Methods§

Source

fn wrapping_add(self, n: Self) -> Self

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 u32

Source§

fn wrapping_add(self, n: u32) -> Self

Source§

impl WrappingAdd for u64

Source§

fn wrapping_add(self, n: u64) -> Self

Implementors§