SaturatingAdd

Trait SaturatingAdd 

Source
pub trait SaturatingAdd: CubeType + Sized {
    // Provided methods
    fn saturating_add(self, _rhs: Self) -> Self { ... }
    fn __expand_saturating_add(
        scope: &mut Scope,
        lhs: ExpandElementTyped<Self>,
        rhs: ExpandElementTyped<Self>,
    ) -> ExpandElementTyped<Self> { ... }
}

Provided Methods§

Source

fn saturating_add(self, _rhs: Self) -> Self

Source

fn __expand_saturating_add( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<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 SaturatingAdd for i8

Source§

impl SaturatingAdd for i16

Source§

impl SaturatingAdd for i32

Source§

impl SaturatingAdd for i64

Source§

impl SaturatingAdd for u8

Source§

impl SaturatingAdd for u16

Source§

impl SaturatingAdd for u32

Source§

impl SaturatingAdd for u64

Implementors§