Trait RefSaturatingAdd

Source
pub trait RefSaturatingAdd<RHS = Self> {
    type Output;

    // Required method
    fn ref_saturating_add(&self, rhs: RHS) -> Self::Output;
}
Expand description

Types that supports saturating addition.

Required Associated Types§

Required Methods§

Source

fn ref_saturating_add(&self, rhs: RHS) -> Self::Output

Implementations on Foreign Types§

Source§

impl RefSaturatingAdd for i8

Source§

type Output = i8

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for i16

Source§

type Output = i16

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for i32

Source§

type Output = i32

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for i64

Source§

type Output = i64

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for isize

Source§

type Output = isize

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for u8

Source§

type Output = u8

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for u16

Source§

type Output = u16

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for u32

Source§

type Output = u32

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for u64

Source§

type Output = u64

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Source§

impl RefSaturatingAdd for usize

Source§

type Output = usize

Source§

fn ref_saturating_add(&self, rhs: Self) -> Self::Output

Implementors§