Skip to main content

SaturatingSub

Trait SaturatingSub 

Source
pub trait SaturatingSub: Sized {
    // Required method
    fn saturating_sub(&self, v: &Self) -> Self;
}

Required Methods§

Source

fn saturating_sub(&self, v: &Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SaturatingSub for i8

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for i16

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for i32

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for i64

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for i128

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for u8

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for u16

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for u32

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for u64

Source§

fn saturating_sub(&self, v: &Self) -> Self

Source§

impl SaturatingSub for u128

Source§

fn saturating_sub(&self, v: &Self) -> Self

Implementors§