SaturatingSub

Trait SaturatingSub 

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

Provided Methods§

Source

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

Source

fn __expand_saturating_sub( 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 SaturatingSub for i8

Source§

impl SaturatingSub for i16

Source§

impl SaturatingSub for i32

Source§

impl SaturatingSub for i64

Source§

impl SaturatingSub for u8

Source§

impl SaturatingSub for u16

Source§

impl SaturatingSub for u32

Source§

impl SaturatingSub for u64

Implementors§