Trait WrappingSub

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

    // Required method
    fn wrapping_sub(self, rhs: Rhs) -> Self::Output;
}
Expand description

Subtraction operator which wraps around the type’s boundaries in case of overflow or underflow.

Required Associated Types§

Required Methods§

Source

fn wrapping_sub(self, rhs: Rhs) -> Self::Output

Implementations on Foreign Types§

Source§

impl WrappingSub for i8

Source§

type Output = i8

Source§

fn wrapping_sub(self, rhs: i8) -> i8

Source§

impl WrappingSub for i16

Source§

impl WrappingSub for i32

Source§

impl WrappingSub for i64

Source§

impl WrappingSub for i128

Source§

impl WrappingSub for isize

Source§

impl WrappingSub for u8

Source§

type Output = u8

Source§

fn wrapping_sub(self, rhs: u8) -> u8

Source§

impl WrappingSub for u16

Source§

impl WrappingSub for u32

Source§

impl WrappingSub for u64

Source§

impl WrappingSub for u128

Source§

impl WrappingSub for usize

Source§

impl<'a> WrappingSub<i8> for &'a i8

Source§

type Output = i8

Source§

fn wrapping_sub(self, rhs: i8) -> i8

Source§

impl<'a> WrappingSub<i16> for &'a i16

Source§

impl<'a> WrappingSub<i32> for &'a i32

Source§

impl<'a> WrappingSub<i64> for &'a i64

Source§

impl<'a> WrappingSub<i128> for &'a i128

Source§

impl<'a> WrappingSub<isize> for &'a isize

Source§

impl<'a> WrappingSub<u8> for &'a u8

Source§

type Output = u8

Source§

fn wrapping_sub(self, rhs: u8) -> u8

Source§

impl<'a> WrappingSub<u16> for &'a u16

Source§

impl<'a> WrappingSub<u32> for &'a u32

Source§

impl<'a> WrappingSub<u64> for &'a u64

Source§

impl<'a> WrappingSub<u128> for &'a u128

Source§

impl<'a> WrappingSub<usize> for &'a usize

Source§

impl<'a, 'r> WrappingSub<&'r i8> for &'a i8

Source§

type Output = i8

Source§

fn wrapping_sub(self, rhs: &'r i8) -> i8

Source§

impl<'a, 'r> WrappingSub<&'r i16> for &'a i16

Source§

type Output = i16

Source§

fn wrapping_sub(self, rhs: &'r i16) -> i16

Source§

impl<'a, 'r> WrappingSub<&'r i32> for &'a i32

Source§

type Output = i32

Source§

fn wrapping_sub(self, rhs: &'r i32) -> i32

Source§

impl<'a, 'r> WrappingSub<&'r i64> for &'a i64

Source§

type Output = i64

Source§

fn wrapping_sub(self, rhs: &'r i64) -> i64

Source§

impl<'a, 'r> WrappingSub<&'r i128> for &'a i128

Source§

type Output = i128

Source§

fn wrapping_sub(self, rhs: &'r i128) -> i128

Source§

impl<'a, 'r> WrappingSub<&'r isize> for &'a isize

Source§

impl<'a, 'r> WrappingSub<&'r u8> for &'a u8

Source§

type Output = u8

Source§

fn wrapping_sub(self, rhs: &'r u8) -> u8

Source§

impl<'a, 'r> WrappingSub<&'r u16> for &'a u16

Source§

type Output = u16

Source§

fn wrapping_sub(self, rhs: &'r u16) -> u16

Source§

impl<'a, 'r> WrappingSub<&'r u32> for &'a u32

Source§

type Output = u32

Source§

fn wrapping_sub(self, rhs: &'r u32) -> u32

Source§

impl<'a, 'r> WrappingSub<&'r u64> for &'a u64

Source§

type Output = u64

Source§

fn wrapping_sub(self, rhs: &'r u64) -> u64

Source§

impl<'a, 'r> WrappingSub<&'r u128> for &'a u128

Source§

type Output = u128

Source§

fn wrapping_sub(self, rhs: &'r u128) -> u128

Source§

impl<'a, 'r> WrappingSub<&'r usize> for &'a usize

Source§

impl<'r> WrappingSub<&'r i8> for i8

Source§

type Output = i8

Source§

fn wrapping_sub(self, rhs: &'r i8) -> i8

Source§

impl<'r> WrappingSub<&'r i16> for i16

Source§

type Output = i16

Source§

fn wrapping_sub(self, rhs: &'r i16) -> i16

Source§

impl<'r> WrappingSub<&'r i32> for i32

Source§

type Output = i32

Source§

fn wrapping_sub(self, rhs: &'r i32) -> i32

Source§

impl<'r> WrappingSub<&'r i64> for i64

Source§

type Output = i64

Source§

fn wrapping_sub(self, rhs: &'r i64) -> i64

Source§

impl<'r> WrappingSub<&'r i128> for i128

Source§

type Output = i128

Source§

fn wrapping_sub(self, rhs: &'r i128) -> i128

Source§

impl<'r> WrappingSub<&'r isize> for isize

Source§

impl<'r> WrappingSub<&'r u8> for u8

Source§

type Output = u8

Source§

fn wrapping_sub(self, rhs: &'r u8) -> u8

Source§

impl<'r> WrappingSub<&'r u16> for u16

Source§

type Output = u16

Source§

fn wrapping_sub(self, rhs: &'r u16) -> u16

Source§

impl<'r> WrappingSub<&'r u32> for u32

Source§

type Output = u32

Source§

fn wrapping_sub(self, rhs: &'r u32) -> u32

Source§

impl<'r> WrappingSub<&'r u64> for u64

Source§

type Output = u64

Source§

fn wrapping_sub(self, rhs: &'r u64) -> u64

Source§

impl<'r> WrappingSub<&'r u128> for u128

Source§

type Output = u128

Source§

fn wrapping_sub(self, rhs: &'r u128) -> u128

Source§

impl<'r> WrappingSub<&'r usize> for usize

Implementors§