pub trait NumericRangeBound: Add<Output = Self> + AddAssign + Sub<Output = Self> + Copy + PartialEq + Ord {
    const ZERO: Self;
    const ONE: Self;

    // Required method
    fn saturating_sub(self, rhs: Self) -> Self;
}

Required Associated Constants§

source

const ZERO: Self

source

const ONE: Self

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NumericRangeBound for u8

source§

const ZERO: Self = 0u8

source§

const ONE: Self = 0u8

source§

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

source§

impl NumericRangeBound for u16

source§

const ZERO: Self = 0u16

source§

const ONE: Self = 0u16

source§

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

source§

impl NumericRangeBound for u32

source§

const ZERO: Self = 0u32

source§

const ONE: Self = 0u32

source§

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

source§

impl NumericRangeBound for u64

source§

const ZERO: Self = 0u64

source§

const ONE: Self = 0u64

source§

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

source§

impl NumericRangeBound for usize

source§

const ZERO: Self = 0usize

source§

const ONE: Self = 0usize

source§

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

Implementors§