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 Value

Source§

type Output = Value

Source§

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

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 for u8

Source§

type Output = u8

Source§

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

Source§

impl Sub for u16

Source§

type Output = u16

Source§

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

Source§

impl Sub for u32

Source§

type Output = u32

Source§

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

Source§

impl Sub for u64

Source§

type Output = u64

Source§

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

Source§

impl Sub for usize

Source§

type Output = usize

Source§

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

Source§

impl Sub<&&Value> for &Value

Source§

type Output = Value

Source§

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

Source§

impl Sub<&&Value> for Value

Source§

type Output = Value

Source§

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

Source§

impl Sub<&&Value> for f32

Source§

type Output = f64

Source§

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

Source§

impl Sub<&&Value> for f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<&&Value> for i8

Source§

type Output = i64

Source§

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

Source§

impl Sub<&&Value> for i16

Source§

type Output = i64

Source§

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

Source§

impl Sub<&&Value> for i32

Source§

type Output = i64

Source§

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

Source§

impl Sub<&&Value> for i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<&&Value> for isize

Source§

type Output = i64

Source§

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

Source§

impl Sub<&&Value> for u8

Source§

type Output = u64

Source§

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

Source§

impl Sub<&&Value> for u16

Source§

type Output = u64

Source§

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

Source§

impl Sub<&&Value> for u32

Source§

type Output = u64

Source§

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

Source§

impl Sub<&&Value> for u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<&&Value> for usize

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for &Value

Source§

type Output = Value

Source§

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

Source§

impl Sub<&Value> for &f32

Source§

type Output = f64

Source§

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

Source§

impl Sub<&Value> for &f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<&Value> for &i8

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for &i16

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for &i32

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for &i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for &isize

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for &u8

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for &u16

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for &u32

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for &u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for &usize

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for Value

Source§

type Output = Value

Source§

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

Source§

impl Sub<&Value> for f32

Source§

type Output = f64

Source§

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

Source§

impl Sub<&Value> for f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<&Value> for i8

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for i16

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for i32

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for isize

Source§

type Output = i64

Source§

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

Source§

impl Sub<&Value> for u8

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for u16

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for u32

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<&Value> for usize

Source§

type Output = i64

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 Value

Source§

type Output = f64

Source§

fn op_sub(self, other: &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 Value

Source§

type Output = f64

Source§

fn op_sub(self, other: &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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: &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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: &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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: &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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: &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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: &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<&u8> for &u8

Source§

type Output = u8

Source§

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

Source§

impl Sub<&u8> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<&u8> for u8

Source§

type Output = u8

Source§

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

Source§

impl Sub<&u16> for &u16

Source§

type Output = u16

Source§

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

Source§

impl Sub<&u16> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<&u16> for u16

Source§

type Output = u16

Source§

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

Source§

impl Sub<&u32> for &u32

Source§

type Output = u32

Source§

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

Source§

impl Sub<&u32> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<&u32> for u32

Source§

type Output = u32

Source§

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

Source§

impl Sub<&u64> for &u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<&u64> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<&u64> for u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<&usize> for &usize

Source§

type Output = usize

Source§

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

Source§

impl Sub<&usize> for Value

Source§

type Output = i64

Source§

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

Source§

impl Sub<&usize> for usize

Source§

type Output = usize

Source§

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

Source§

impl Sub<Value> for &Value

Source§

type Output = Value

Source§

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

Source§

impl Sub<Value> for &f32

Source§

type Output = f64

Source§

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

Source§

impl Sub<Value> for &f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<Value> for &i8

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for &i16

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for &i32

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for &i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for &isize

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for &u8

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for &u16

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for &u32

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for &u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for &usize

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for f32

Source§

type Output = f64

Source§

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

Source§

impl Sub<Value> for f64

Source§

type Output = f64

Source§

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

Source§

impl Sub<Value> for i8

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for i16

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for i32

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for i64

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for isize

Source§

type Output = i64

Source§

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

Source§

impl Sub<Value> for u8

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for u16

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for u32

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<Value> for usize

Source§

type Output = i64

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 Value

Source§

type Output = f64

Source§

fn op_sub(self, other: 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 Value

Source§

type Output = f64

Source§

fn op_sub(self, other: 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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: 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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: 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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: 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 Value

Source§

type Output = i64

Source§

fn op_sub(self, other: 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 Value

Source§

type Output = i64

Source§

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

Source§

impl Sub<u8> for &u8

Source§

type Output = u8

Source§

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

Source§

impl Sub<u8> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<u16> for &u16

Source§

type Output = u16

Source§

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

Source§

impl Sub<u16> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<u32> for &u32

Source§

type Output = u32

Source§

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

Source§

impl Sub<u32> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<u64> for &u64

Source§

type Output = u64

Source§

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

Source§

impl Sub<u64> for Value

Source§

type Output = u64

Source§

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

Source§

impl Sub<usize> for &usize

Source§

type Output = usize

Source§

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

Source§

impl Sub<usize> for Value

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = f64

Source§

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

Source§

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

Source§

type Output = f64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = f64

Source§

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

Source§

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

Source§

type Output = f64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = i64

Source§

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

Implementors§