Trait Sub

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

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

Required Associated Types§

Source

type Output

The resulting type after applying the - operator.

Required Methods§

Source

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

Performs the - operation.

§Example
assert_eq!(12 - 1, 11);

Implementations on Foreign Types§

Source§

impl Sub for Bson

Source§

type Output = Bson

Source§

fn op_sub(self, rhs: Bson) -> <Bson as Sub>::Output

Source§

impl Sub for f32

Source§

type Output = f32

Source§

fn op_sub(self, rhs: f32) -> <f32 as Sub>::Output

Source§

impl Sub for f64

Source§

type Output = f64

Source§

fn op_sub(self, rhs: f64) -> <f64 as Sub>::Output

Source§

impl Sub for i8

Source§

type Output = i8

Source§

fn op_sub(self, rhs: i8) -> <i8 as Sub>::Output

Source§

impl Sub for i16

Source§

type Output = i16

Source§

fn op_sub(self, rhs: i16) -> <i16 as Sub>::Output

Source§

impl Sub for i32

Source§

type Output = i32

Source§

fn op_sub(self, rhs: i32) -> <i32 as Sub>::Output

Source§

impl Sub for i64

Source§

type Output = i64

Source§

fn op_sub(self, rhs: i64) -> <i64 as Sub>::Output

Source§

impl Sub for isize

Source§

type Output = isize

Source§

fn op_sub(self, rhs: isize) -> <isize as Sub>::Output

Source§

impl Sub<&&Bson> for &Bson

Source§

type Output = Bson

Source§

fn op_sub(self, rhs: &&Bson) -> <&Bson as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for Bson

Source§

type Output = Bson

Source§

fn op_sub(self, rhs: &&Bson) -> <Bson as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for f32

Source§

type Output = f64

Source§

fn op_sub(self, other: &&Bson) -> <f32 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for f64

Source§

type Output = f64

Source§

fn op_sub(self, other: &&Bson) -> <f64 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for i8

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Bson) -> <i8 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for i16

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Bson) -> <i16 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for i32

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Bson) -> <i32 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for i64

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Bson) -> <i64 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for isize

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Bson) -> <isize as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for u8

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Bson) -> <u8 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for u16

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Bson) -> <u16 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for u32

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Bson) -> <u32 as Sub<&&Bson>>::Output

Source§

impl Sub<&&Bson> for u64

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Bson) -> <u64 as Sub<&&Bson>>::Output

Source§

impl Sub<&Bson> for &Bson

Source§

type Output = Bson

Source§

fn op_sub(self, rhs: &Bson) -> <&Bson as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for Bson

Source§

type Output = Bson

Source§

fn op_sub(self, rhs: &Bson) -> <Bson as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for f32

Source§

type Output = f64

Source§

fn op_sub(self, other: &Bson) -> <f32 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for f64

Source§

type Output = f64

Source§

fn op_sub(self, other: &Bson) -> <f64 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for i8

Source§

type Output = i64

Source§

fn op_sub(self, other: &Bson) -> <i8 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for i16

Source§

type Output = i64

Source§

fn op_sub(self, other: &Bson) -> <i16 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for i32

Source§

type Output = i64

Source§

fn op_sub(self, other: &Bson) -> <i32 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for i64

Source§

type Output = i64

Source§

fn op_sub(self, other: &Bson) -> <i64 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for isize

Source§

type Output = i64

Source§

fn op_sub(self, other: &Bson) -> <isize as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for u8

Source§

type Output = u64

Source§

fn op_sub(self, other: &Bson) -> <u8 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for u16

Source§

type Output = u64

Source§

fn op_sub(self, other: &Bson) -> <u16 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for u32

Source§

type Output = u64

Source§

fn op_sub(self, other: &Bson) -> <u32 as Sub<&Bson>>::Output

Source§

impl Sub<&Bson> for u64

Source§

type Output = u64

Source§

fn op_sub(self, other: &Bson) -> <u64 as Sub<&Bson>>::Output

Source§

impl Sub<&f32> for &f32

Source§

type Output = f32

Source§

fn op_sub(self, rhs: &f32) -> <&f32 as Sub<&f32>>::Output

Source§

impl Sub<&f32> for f32

Source§

type Output = f32

Source§

fn op_sub(self, rhs: &f32) -> <f32 as Sub<&f32>>::Output

Source§

impl Sub<&f64> for &f64

Source§

type Output = f64

Source§

fn op_sub(self, rhs: &f64) -> <&f64 as Sub<&f64>>::Output

Source§

impl Sub<&f64> for f64

Source§

type Output = f64

Source§

fn op_sub(self, rhs: &f64) -> <f64 as Sub<&f64>>::Output

Source§

impl Sub<&i8> for &i8

Source§

type Output = i8

Source§

fn op_sub(self, rhs: &i8) -> <&i8 as Sub<&i8>>::Output

Source§

impl Sub<&i8> for i8

Source§

type Output = i8

Source§

fn op_sub(self, rhs: &i8) -> <i8 as Sub<&i8>>::Output

Source§

impl Sub<&i16> for &i16

Source§

type Output = i16

Source§

fn op_sub(self, rhs: &i16) -> <&i16 as Sub<&i16>>::Output

Source§

impl Sub<&i16> for i16

Source§

type Output = i16

Source§

fn op_sub(self, rhs: &i16) -> <i16 as Sub<&i16>>::Output

Source§

impl Sub<&i32> for &i32

Source§

type Output = i32

Source§

fn op_sub(self, rhs: &i32) -> <&i32 as Sub<&i32>>::Output

Source§

impl Sub<&i32> for i32

Source§

type Output = i32

Source§

fn op_sub(self, rhs: &i32) -> <i32 as Sub<&i32>>::Output

Source§

impl Sub<&i64> for &i64

Source§

type Output = i64

Source§

fn op_sub(self, rhs: &i64) -> <&i64 as Sub<&i64>>::Output

Source§

impl Sub<&i64> for i64

Source§

type Output = i64

Source§

fn op_sub(self, rhs: &i64) -> <i64 as Sub<&i64>>::Output

Source§

impl Sub<&isize> for &isize

Source§

type Output = isize

Source§

fn op_sub(self, rhs: &isize) -> <&isize as Sub<&isize>>::Output

Source§

impl Sub<&isize> for isize

Source§

type Output = isize

Source§

fn op_sub(self, rhs: &isize) -> <isize as Sub<&isize>>::Output

Source§

impl Sub<Bson> for &Bson

Source§

type Output = Bson

Source§

fn op_sub(self, rhs: Bson) -> <&Bson as Sub<Bson>>::Output

Source§

impl Sub<Bson> for f32

Source§

type Output = f64

Source§

fn op_sub(self, other: Bson) -> <f32 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for f64

Source§

type Output = f64

Source§

fn op_sub(self, other: Bson) -> <f64 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for i8

Source§

type Output = i64

Source§

fn op_sub(self, other: Bson) -> <i8 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for i16

Source§

type Output = i64

Source§

fn op_sub(self, other: Bson) -> <i16 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for i32

Source§

type Output = i64

Source§

fn op_sub(self, other: Bson) -> <i32 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for i64

Source§

type Output = i64

Source§

fn op_sub(self, other: Bson) -> <i64 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for isize

Source§

type Output = i64

Source§

fn op_sub(self, other: Bson) -> <isize as Sub<Bson>>::Output

Source§

impl Sub<Bson> for u8

Source§

type Output = u64

Source§

fn op_sub(self, other: Bson) -> <u8 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for u16

Source§

type Output = u64

Source§

fn op_sub(self, other: Bson) -> <u16 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for u32

Source§

type Output = u64

Source§

fn op_sub(self, other: Bson) -> <u32 as Sub<Bson>>::Output

Source§

impl Sub<Bson> for u64

Source§

type Output = u64

Source§

fn op_sub(self, other: Bson) -> <u64 as Sub<Bson>>::Output

Source§

impl Sub<f32> for &f32

Source§

type Output = f32

Source§

fn op_sub(self, rhs: f32) -> <&f32 as Sub<f32>>::Output

Source§

impl Sub<f32> for Bson

Source§

type Output = f64

Source§

fn op_sub(self, other: f32) -> <Bson as Sub<f32>>::Output

Source§

impl Sub<f64> for &f64

Source§

type Output = f64

Source§

fn op_sub(self, rhs: f64) -> <&f64 as Sub<f64>>::Output

Source§

impl Sub<f64> for Bson

Source§

type Output = f64

Source§

fn op_sub(self, other: f64) -> <Bson as Sub<f64>>::Output

Source§

impl Sub<i8> for &i8

Source§

type Output = i8

Source§

fn op_sub(self, rhs: i8) -> <&i8 as Sub<i8>>::Output

Source§

impl Sub<i8> for Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i8) -> <Bson as Sub<i8>>::Output

Source§

impl Sub<i16> for &i16

Source§

type Output = i16

Source§

fn op_sub(self, rhs: i16) -> <&i16 as Sub<i16>>::Output

Source§

impl Sub<i16> for Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i16) -> <Bson as Sub<i16>>::Output

Source§

impl Sub<i32> for &i32

Source§

type Output = i32

Source§

fn op_sub(self, rhs: i32) -> <&i32 as Sub<i32>>::Output

Source§

impl Sub<i32> for Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i32) -> <Bson as Sub<i32>>::Output

Source§

impl Sub<i64> for &i64

Source§

type Output = i64

Source§

fn op_sub(self, rhs: i64) -> <&i64 as Sub<i64>>::Output

Source§

impl Sub<i64> for Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i64) -> <Bson as Sub<i64>>::Output

Source§

impl Sub<isize> for &isize

Source§

type Output = isize

Source§

fn op_sub(self, rhs: isize) -> <&isize as Sub<isize>>::Output

Source§

impl Sub<isize> for Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: isize) -> <Bson as Sub<isize>>::Output

Source§

impl Sub<u8> for Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u8) -> <Bson as Sub<u8>>::Output

Source§

impl Sub<u16> for Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u16) -> <Bson as Sub<u16>>::Output

Source§

impl Sub<u32> for Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u32) -> <Bson as Sub<u32>>::Output

Source§

impl Sub<u64> for Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u64) -> <Bson as Sub<u64>>::Output

Source§

impl<'a> Sub<f32> for &'a Bson

Source§

type Output = f64

Source§

fn op_sub(self, other: f32) -> <&'a Bson as Sub<f32>>::Output

Source§

impl<'a> Sub<f64> for &'a Bson

Source§

type Output = f64

Source§

fn op_sub(self, other: f64) -> <&'a Bson as Sub<f64>>::Output

Source§

impl<'a> Sub<i8> for &'a Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i8) -> <&'a Bson as Sub<i8>>::Output

Source§

impl<'a> Sub<i16> for &'a Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i16) -> <&'a Bson as Sub<i16>>::Output

Source§

impl<'a> Sub<i32> for &'a Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i32) -> <&'a Bson as Sub<i32>>::Output

Source§

impl<'a> Sub<i64> for &'a Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: i64) -> <&'a Bson as Sub<i64>>::Output

Source§

impl<'a> Sub<isize> for &'a Bson

Source§

type Output = i64

Source§

fn op_sub(self, other: isize) -> <&'a Bson as Sub<isize>>::Output

Source§

impl<'a> Sub<u8> for &'a Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u8) -> <&'a Bson as Sub<u8>>::Output

Source§

impl<'a> Sub<u16> for &'a Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u16) -> <&'a Bson as Sub<u16>>::Output

Source§

impl<'a> Sub<u32> for &'a Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u32) -> <&'a Bson as Sub<u32>>::Output

Source§

impl<'a> Sub<u64> for &'a Bson

Source§

type Output = u64

Source§

fn op_sub(self, other: u64) -> <&'a Bson as Sub<u64>>::Output

Implementors§