Trait CheckedSub

Source
pub trait CheckedSub<Rhs = Self> {
    type Output;

    // Required method
    fn checked_sub(self, rhs: Rhs) -> Option<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn checked_sub(self, rhs: Rhs) -> Option<Self::Output>

Implementations on Foreign Types§

Source§

impl CheckedSub for i8

Source§

type Output = i8

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for i16

Source§

type Output = i16

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for i32

Source§

type Output = i32

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for i64

Source§

type Output = i64

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for i128

Source§

type Output = i128

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for isize

Source§

type Output = isize

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for u8

Source§

type Output = u8

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for u16

Source§

type Output = u16

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for u32

Source§

type Output = u32

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for u64

Source§

type Output = u64

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for u128

Source§

type Output = u128

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl CheckedSub for usize

Source§

type Output = usize

Source§

fn checked_sub(self, rhs: Self) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<i8, D>> for i8

Source§

type Output = i8

Source§

fn checked_sub(self, rhs: Checked<i8, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<i16, D>> for i16

Source§

type Output = i16

Source§

fn checked_sub(self, rhs: Checked<i16, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<i32, D>> for i32

Source§

type Output = i32

Source§

fn checked_sub(self, rhs: Checked<i32, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<i64, D>> for i64

Source§

type Output = i64

Source§

fn checked_sub(self, rhs: Checked<i64, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<i128, D>> for i128

Source§

type Output = i128

Source§

fn checked_sub(self, rhs: Checked<i128, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<isize, D>> for isize

Source§

impl<D> CheckedSub<Checked<u8, D>> for u8

Source§

type Output = u8

Source§

fn checked_sub(self, rhs: Checked<u8, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<u16, D>> for u16

Source§

type Output = u16

Source§

fn checked_sub(self, rhs: Checked<u16, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<u32, D>> for u32

Source§

type Output = u32

Source§

fn checked_sub(self, rhs: Checked<u32, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<u64, D>> for u64

Source§

type Output = u64

Source§

fn checked_sub(self, rhs: Checked<u64, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<u128, D>> for u128

Source§

type Output = u128

Source§

fn checked_sub(self, rhs: Checked<u128, D>) -> Option<Self::Output>

Source§

impl<D> CheckedSub<Checked<usize, D>> for usize

Implementors§