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 f32

Source§

type Output = f32

Source§

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

Source§

impl Sub for f64

Source§

type Output = f64

Source§

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

Source§

impl Sub for i8

Source§

type Output = i8

Source§

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

Source§

impl Sub for i16

Source§

type Output = i16

Source§

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

Source§

impl Sub for i32

Source§

type Output = i32

Source§

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

Source§

impl Sub for i64

Source§

type Output = i64

Source§

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

Source§

impl Sub for isize

Source§

type Output = isize

Source§

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

Source§

impl Sub<&&Bson> for f32

Source§

type Output = f64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for f64

Source§

type Output = f64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for i8

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for i16

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for i32

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for i64

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for isize

Source§

type Output = i64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for u8

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for u16

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for u32

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&&Bson> for u64

Source§

type Output = u64

Source§

fn op_sub(self, other: &&Value) -> Self::Output

Source§

impl Sub<&Bson> for f32

Source§

type Output = f64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for f64

Source§

type Output = f64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for i8

Source§

type Output = i64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for i16

Source§

type Output = i64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for i32

Source§

type Output = i64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for i64

Source§

type Output = i64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for isize

Source§

type Output = i64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for u8

Source§

type Output = u64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for u16

Source§

type Output = u64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for u32

Source§

type Output = u64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&Bson> for u64

Source§

type Output = u64

Source§

fn op_sub(self, other: &Value) -> Self::Output

Source§

impl Sub<&f32> for &f32

Source§

type Output = f32

Source§

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

Source§

impl Sub<&f32> for f32

Source§

type Output = f32

Source§

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

Source§

impl Sub<&f64> for &f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<&f64> for f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<&i8> for &i8

Source§

type Output = i8

Source§

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

Source§

impl Sub<&i8> for i8

Source§

type Output = i8

Source§

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

Source§

impl Sub<&i16> for &i16

Source§

type Output = i16

Source§

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

Source§

impl Sub<&i16> for i16

Source§

type Output = i16

Source§

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

Source§

impl Sub<&i32> for &i32

Source§

type Output = i32

Source§

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

Source§

impl Sub<&i32> for i32

Source§

type Output = i32

Source§

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

Source§

impl Sub<&i64> for &i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<&i64> for i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<&isize> for &isize

Source§

type Output = isize

Source§

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

Source§

impl Sub<&isize> for isize

Source§

type Output = isize

Source§

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

Source§

impl Sub<Bson> for f32

Source§

type Output = f64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for f64

Source§

type Output = f64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for i8

Source§

type Output = i64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for i16

Source§

type Output = i64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for i32

Source§

type Output = i64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for i64

Source§

type Output = i64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for isize

Source§

type Output = i64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for u8

Source§

type Output = u64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for u16

Source§

type Output = u64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for u32

Source§

type Output = u64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<Bson> for u64

Source§

type Output = u64

Source§

fn op_sub(self, other: Value) -> Self::Output

Source§

impl Sub<f32> for &f32

Source§

type Output = f32

Source§

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

Source§

impl Sub<f64> for &f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<i8> for &i8

Source§

type Output = i8

Source§

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

Source§

impl Sub<i16> for &i16

Source§

type Output = i16

Source§

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

Source§

impl Sub<i32> for &i32

Source§

type Output = i32

Source§

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

Source§

impl Sub<i64> for &i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<isize> for &isize

Source§

type Output = isize

Source§

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

Implementors§

Source§

impl Sub for Value

Source§

impl Sub<&&Bson> for &Value

Source§

impl Sub<&&Bson> for Value

Source§

impl Sub<&Bson> for &Value

Source§

impl Sub<&Bson> for Value

Source§

impl Sub<Bson> for &Value

Source§

impl Sub<f32> for Value

Source§

impl Sub<f64> for Value

Source§

impl Sub<i8> for Value

Source§

impl Sub<i16> for Value

Source§

impl Sub<i32> for Value

Source§

impl Sub<i64> for Value

Source§

impl Sub<isize> for Value

Source§

impl Sub<u8> for Value

Source§

impl Sub<u16> for Value

Source§

impl Sub<u32> for Value

Source§

impl Sub<u64> for Value

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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