Trait enso_prelude::Sub1.0.0[][src]

pub trait Sub<Rhs = Self> {
    type Output;
    #[must_use]
    fn sub(self, rhs: Rhs) -> Self::Output;
}
Expand description

The subtraction operator -.

Note that Rhs is Self by default, but this is not mandatory. For example, std::time::SystemTime implements Sub<Duration>, which permits operations of the form SystemTime = SystemTime - Duration.

Examples

Subtractable points

use std::ops::Sub;

#[derive(Debug, Copy, Clone, PartialEq)]
struct Point {
    x: i32,
    y: i32,
}

impl Sub for Point {
    type Output = Self;

    fn sub(self, other: Self) -> Self::Output {
        Self {
            x: self.x - other.x,
            y: self.y - other.y,
        }
    }
}

assert_eq!(Point { x: 3, y: 3 } - Point { x: 2, y: 3 },
           Point { x: 1, y: 0 });

Implementing Sub with generics

Here is an example of the same Point struct implementing the Sub trait using generics.

use std::ops::Sub;

#[derive(Debug, PartialEq)]
struct Point<T> {
    x: T,
    y: T,
}

// Notice that the implementation uses the associated type `Output`.
impl<T: Sub<Output = T>> Sub for Point<T> {
    type Output = Self;

    fn sub(self, other: Self) -> Self::Output {
        Point {
            x: self.x - other.x,
            y: self.y - other.y,
        }
    }
}

assert_eq!(Point { x: 2, y: 3 } - Point { x: 1, y: 0 },
           Point { x: 1, y: 3 });

Associated Types

type Output[src]

The resulting type after applying the - operator.

Required methods

#[must_use]
fn sub(self, rhs: Rhs) -> Self::Output
[src]

Performs the - operation.

Example

assert_eq!(12 - 1, 11);

Implementations on Foreign Types

impl Sub<Duration> for Instant[src]

type Output = Instant

pub fn sub(self, other: Duration) -> Instant[src]

impl Sub<Instant> for Instant[src]

type Output = Duration

pub fn sub(self, other: Instant) -> Duration[src]

impl Sub<Duration> for SystemTime[src]

type Output = SystemTime

pub fn sub(self, dur: Duration) -> SystemTime[src]

impl<'a> Sub<Wrapping<isize>> for &'a Wrapping<isize>[src]

type Output = <Wrapping<isize> as Sub<Wrapping<isize>>>::Output

pub fn sub(
    self,
    other: Wrapping<isize>
) -> <Wrapping<isize> as Sub<Wrapping<isize>>>::Output
[src]

impl<'_, '_> Sub<&'_ i16> for &'_ i16[src]

type Output = <i16 as Sub<i16>>::Output

pub fn sub(self, other: &i16) -> <i16 as Sub<i16>>::Output[src]

impl Sub<f32> for f32[src]

type Output = f32

pub fn sub(self, other: f32) -> f32[src]

impl Sub<u128> for u128[src]

type Output = u128

pub fn sub(self, other: u128) -> u128[src]

impl<'_, '_> Sub<&'_ Wrapping<isize>> for &'_ Wrapping<isize>[src]

type Output = <Wrapping<isize> as Sub<Wrapping<isize>>>::Output

pub fn sub(
    self,
    other: &Wrapping<isize>
) -> <Wrapping<isize> as Sub<Wrapping<isize>>>::Output
[src]

impl<'_, '_> Sub<&'_ u8> for &'_ u8[src]

type Output = <u8 as Sub<u8>>::Output

pub fn sub(self, other: &u8) -> <u8 as Sub<u8>>::Output[src]

impl<'a> Sub<Wrapping<u8>> for &'a Wrapping<u8>[src]

type Output = <Wrapping<u8> as Sub<Wrapping<u8>>>::Output

pub fn sub(
    self,
    other: Wrapping<u8>
) -> <Wrapping<u8> as Sub<Wrapping<u8>>>::Output
[src]

impl Sub<Wrapping<u32>> for Wrapping<u32>[src]

type Output = Wrapping<u32>

pub fn sub(self, other: Wrapping<u32>) -> Wrapping<u32>[src]

impl<'_, '_> Sub<&'_ u128> for &'_ u128[src]

type Output = <u128 as Sub<u128>>::Output

pub fn sub(self, other: &u128) -> <u128 as Sub<u128>>::Output[src]

impl<'_> Sub<&'_ u16> for u16[src]

type Output = <u16 as Sub<u16>>::Output

pub fn sub(self, other: &u16) -> <u16 as Sub<u16>>::Output[src]

impl<'_> Sub<&'_ isize> for isize[src]

type Output = <isize as Sub<isize>>::Output

pub fn sub(self, other: &isize) -> <isize as Sub<isize>>::Output[src]

impl<'_> Sub<&'_ u32> for u32[src]

type Output = <u32 as Sub<u32>>::Output

pub fn sub(self, other: &u32) -> <u32 as Sub<u32>>::Output[src]

impl<'a> Sub<isize> for &'a isize[src]

type Output = <isize as Sub<isize>>::Output

pub fn sub(self, other: isize) -> <isize as Sub<isize>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<i16>> for &'_ Wrapping<i16>[src]

type Output = <Wrapping<i16> as Sub<Wrapping<i16>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i16>
) -> <Wrapping<i16> as Sub<Wrapping<i16>>>::Output
[src]

impl<'_> Sub<&'_ Wrapping<i64>> for Wrapping<i64>[src]

type Output = <Wrapping<i64> as Sub<Wrapping<i64>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i64>
) -> <Wrapping<i64> as Sub<Wrapping<i64>>>::Output
[src]

impl<'a> Sub<Wrapping<usize>> for &'a Wrapping<usize>[src]

type Output = <Wrapping<usize> as Sub<Wrapping<usize>>>::Output

pub fn sub(
    self,
    other: Wrapping<usize>
) -> <Wrapping<usize> as Sub<Wrapping<usize>>>::Output
[src]

impl<'a> Sub<Wrapping<i64>> for &'a Wrapping<i64>[src]

type Output = <Wrapping<i64> as Sub<Wrapping<i64>>>::Output

pub fn sub(
    self,
    other: Wrapping<i64>
) -> <Wrapping<i64> as Sub<Wrapping<i64>>>::Output
[src]

impl<'_> Sub<&'_ Wrapping<i32>> for Wrapping<i32>[src]

type Output = <Wrapping<i32> as Sub<Wrapping<i32>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i32>
) -> <Wrapping<i32> as Sub<Wrapping<i32>>>::Output
[src]

impl Sub<i32> for i32[src]

type Output = i32

pub fn sub(self, other: i32) -> i32[src]

impl<'_> Sub<&'_ Wrapping<i8>> for Wrapping<i8>[src]

type Output = <Wrapping<i8> as Sub<Wrapping<i8>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i8>
) -> <Wrapping<i8> as Sub<Wrapping<i8>>>::Output
[src]

impl<'_> Sub<&'_ u128> for u128[src]

type Output = <u128 as Sub<u128>>::Output

pub fn sub(self, other: &u128) -> <u128 as Sub<u128>>::Output[src]

impl<'a> Sub<i32> for &'a i32[src]

type Output = <i32 as Sub<i32>>::Output

pub fn sub(self, other: i32) -> <i32 as Sub<i32>>::Output[src]

impl<'a> Sub<f32> for &'a f32[src]

type Output = <f32 as Sub<f32>>::Output

pub fn sub(self, other: f32) -> <f32 as Sub<f32>>::Output[src]

impl<'a> Sub<u128> for &'a u128[src]

type Output = <u128 as Sub<u128>>::Output

pub fn sub(self, other: u128) -> <u128 as Sub<u128>>::Output[src]

impl<'_> Sub<&'_ u8> for u8[src]

type Output = <u8 as Sub<u8>>::Output

pub fn sub(self, other: &u8) -> <u8 as Sub<u8>>::Output[src]

impl<'_, '_> Sub<&'_ isize> for &'_ isize[src]

type Output = <isize as Sub<isize>>::Output

pub fn sub(self, other: &isize) -> <isize as Sub<isize>>::Output[src]

impl<'_, '_> Sub<&'_ u32> for &'_ u32[src]

type Output = <u32 as Sub<u32>>::Output

pub fn sub(self, other: &u32) -> <u32 as Sub<u32>>::Output[src]

impl<'a> Sub<i8> for &'a i8[src]

type Output = <i8 as Sub<i8>>::Output

pub fn sub(self, other: i8) -> <i8 as Sub<i8>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<i128>> for &'_ Wrapping<i128>[src]

type Output = <Wrapping<i128> as Sub<Wrapping<i128>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i128>
) -> <Wrapping<i128> as Sub<Wrapping<i128>>>::Output
[src]

impl<'_> Sub<&'_ i8> for i8[src]

type Output = <i8 as Sub<i8>>::Output

pub fn sub(self, other: &i8) -> <i8 as Sub<i8>>::Output[src]

impl<'_> Sub<&'_ f32> for f32[src]

type Output = <f32 as Sub<f32>>::Output

pub fn sub(self, other: &f32) -> <f32 as Sub<f32>>::Output[src]

impl<'_> Sub<&'_ i128> for i128[src]

type Output = <i128 as Sub<i128>>::Output

pub fn sub(self, other: &i128) -> <i128 as Sub<i128>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<u128>> for &'_ Wrapping<u128>[src]

type Output = <Wrapping<u128> as Sub<Wrapping<u128>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u128>
) -> <Wrapping<u128> as Sub<Wrapping<u128>>>::Output
[src]

impl<'a> Sub<u16> for &'a u16[src]

type Output = <u16 as Sub<u16>>::Output

pub fn sub(self, other: u16) -> <u16 as Sub<u16>>::Output[src]

impl Sub<Wrapping<isize>> for Wrapping<isize>[src]

type Output = Wrapping<isize>

pub fn sub(self, other: Wrapping<isize>) -> Wrapping<isize>[src]

impl Sub<u32> for u32[src]

type Output = u32

pub fn sub(self, other: u32) -> u32[src]

impl<'_> Sub<&'_ Wrapping<u32>> for Wrapping<u32>[src]

type Output = <Wrapping<u32> as Sub<Wrapping<u32>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u32>
) -> <Wrapping<u32> as Sub<Wrapping<u32>>>::Output
[src]

impl<'_, '_> Sub<&'_ Wrapping<i8>> for &'_ Wrapping<i8>[src]

type Output = <Wrapping<i8> as Sub<Wrapping<i8>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i8>
) -> <Wrapping<i8> as Sub<Wrapping<i8>>>::Output
[src]

impl<'_, '_> Sub<&'_ i8> for &'_ i8[src]

type Output = <i8 as Sub<i8>>::Output

pub fn sub(self, other: &i8) -> <i8 as Sub<i8>>::Output[src]

impl Sub<usize> for usize[src]

type Output = usize

pub fn sub(self, other: usize) -> usize[src]

impl<'a> Sub<Wrapping<u16>> for &'a Wrapping<u16>[src]

type Output = <Wrapping<u16> as Sub<Wrapping<u16>>>::Output

pub fn sub(
    self,
    other: Wrapping<u16>
) -> <Wrapping<u16> as Sub<Wrapping<u16>>>::Output
[src]

impl Sub<Wrapping<u16>> for Wrapping<u16>[src]

type Output = Wrapping<u16>

pub fn sub(self, other: Wrapping<u16>) -> Wrapping<u16>[src]

impl<'_> Sub<&'_ i16> for i16[src]

type Output = <i16 as Sub<i16>>::Output

pub fn sub(self, other: &i16) -> <i16 as Sub<i16>>::Output[src]

impl<'_> Sub<&'_ u64> for u64[src]

type Output = <u64 as Sub<u64>>::Output

pub fn sub(self, other: &u64) -> <u64 as Sub<u64>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<u64>> for &'_ Wrapping<u64>[src]

type Output = <Wrapping<u64> as Sub<Wrapping<u64>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u64>
) -> <Wrapping<u64> as Sub<Wrapping<u64>>>::Output
[src]

impl<'_, '_> Sub<&'_ Wrapping<i64>> for &'_ Wrapping<i64>[src]

type Output = <Wrapping<i64> as Sub<Wrapping<i64>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i64>
) -> <Wrapping<i64> as Sub<Wrapping<i64>>>::Output
[src]

impl<'_> Sub<&'_ Wrapping<i16>> for Wrapping<i16>[src]

type Output = <Wrapping<i16> as Sub<Wrapping<i16>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i16>
) -> <Wrapping<i16> as Sub<Wrapping<i16>>>::Output
[src]

impl<'a> Sub<u64> for &'a u64[src]

type Output = <u64 as Sub<u64>>::Output

pub fn sub(self, other: u64) -> <u64 as Sub<u64>>::Output[src]

impl<'a> Sub<Wrapping<u32>> for &'a Wrapping<u32>[src]

type Output = <Wrapping<u32> as Sub<Wrapping<u32>>>::Output

pub fn sub(
    self,
    other: Wrapping<u32>
) -> <Wrapping<u32> as Sub<Wrapping<u32>>>::Output
[src]

impl<'a> Sub<Wrapping<i128>> for &'a Wrapping<i128>[src]

type Output = <Wrapping<i128> as Sub<Wrapping<i128>>>::Output

pub fn sub(
    self,
    other: Wrapping<i128>
) -> <Wrapping<i128> as Sub<Wrapping<i128>>>::Output
[src]

impl<'a> Sub<Wrapping<u64>> for &'a Wrapping<u64>[src]

type Output = <Wrapping<u64> as Sub<Wrapping<u64>>>::Output

pub fn sub(
    self,
    other: Wrapping<u64>
) -> <Wrapping<u64> as Sub<Wrapping<u64>>>::Output
[src]

impl Sub<f64> for f64[src]

type Output = f64

pub fn sub(self, other: f64) -> f64[src]

impl Sub<u64> for u64[src]

type Output = u64

pub fn sub(self, other: u64) -> u64[src]

impl<'_> Sub<&'_ usize> for usize[src]

type Output = <usize as Sub<usize>>::Output

pub fn sub(self, other: &usize) -> <usize as Sub<usize>>::Output[src]

impl<'_, '_> Sub<&'_ i32> for &'_ i32[src]

type Output = <i32 as Sub<i32>>::Output

pub fn sub(self, other: &i32) -> <i32 as Sub<i32>>::Output[src]

impl Sub<Wrapping<i32>> for Wrapping<i32>[src]

type Output = Wrapping<i32>

pub fn sub(self, other: Wrapping<i32>) -> Wrapping<i32>[src]

impl<'a> Sub<i64> for &'a i64[src]

type Output = <i64 as Sub<i64>>::Output

pub fn sub(self, other: i64) -> <i64 as Sub<i64>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<u16>> for &'_ Wrapping<u16>[src]

type Output = <Wrapping<u16> as Sub<Wrapping<u16>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u16>
) -> <Wrapping<u16> as Sub<Wrapping<u16>>>::Output
[src]

impl<'a> Sub<i16> for &'a i16[src]

type Output = <i16 as Sub<i16>>::Output

pub fn sub(self, other: i16) -> <i16 as Sub<i16>>::Output[src]

impl Sub<Wrapping<i16>> for Wrapping<i16>[src]

type Output = Wrapping<i16>

pub fn sub(self, other: Wrapping<i16>) -> Wrapping<i16>[src]

impl<'_, '_> Sub<&'_ Wrapping<i32>> for &'_ Wrapping<i32>[src]

type Output = <Wrapping<i32> as Sub<Wrapping<i32>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i32>
) -> <Wrapping<i32> as Sub<Wrapping<i32>>>::Output
[src]

impl Sub<Wrapping<i128>> for Wrapping<i128>[src]

type Output = Wrapping<i128>

pub fn sub(self, other: Wrapping<i128>) -> Wrapping<i128>[src]

impl<'a> Sub<Wrapping<i16>> for &'a Wrapping<i16>[src]

type Output = <Wrapping<i16> as Sub<Wrapping<i16>>>::Output

pub fn sub(
    self,
    other: Wrapping<i16>
) -> <Wrapping<i16> as Sub<Wrapping<i16>>>::Output
[src]

impl<'_, '_> Sub<&'_ Wrapping<u32>> for &'_ Wrapping<u32>[src]

type Output = <Wrapping<u32> as Sub<Wrapping<u32>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u32>
) -> <Wrapping<u32> as Sub<Wrapping<u32>>>::Output
[src]

impl<'_> Sub<&'_ i32> for i32[src]

type Output = <i32 as Sub<i32>>::Output

pub fn sub(self, other: &i32) -> <i32 as Sub<i32>>::Output[src]

impl<'a> Sub<Wrapping<i8>> for &'a Wrapping<i8>[src]

type Output = <Wrapping<i8> as Sub<Wrapping<i8>>>::Output

pub fn sub(
    self,
    other: Wrapping<i8>
) -> <Wrapping<i8> as Sub<Wrapping<i8>>>::Output
[src]

impl Sub<u16> for u16[src]

type Output = u16

pub fn sub(self, other: u16) -> u16[src]

impl<'a> Sub<f64> for &'a f64[src]

type Output = <f64 as Sub<f64>>::Output

pub fn sub(self, other: f64) -> <f64 as Sub<f64>>::Output[src]

impl<'_> Sub<&'_ Wrapping<u16>> for Wrapping<u16>[src]

type Output = <Wrapping<u16> as Sub<Wrapping<u16>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u16>
) -> <Wrapping<u16> as Sub<Wrapping<u16>>>::Output
[src]

impl<'_, '_> Sub<&'_ u64> for &'_ u64[src]

type Output = <u64 as Sub<u64>>::Output

pub fn sub(self, other: &u64) -> <u64 as Sub<u64>>::Output[src]

impl<'_> Sub<&'_ Wrapping<i128>> for Wrapping<i128>[src]

type Output = <Wrapping<i128> as Sub<Wrapping<i128>>>::Output

pub fn sub(
    self,
    other: &Wrapping<i128>
) -> <Wrapping<i128> as Sub<Wrapping<i128>>>::Output
[src]

impl Sub<i8> for i8[src]

type Output = i8

pub fn sub(self, other: i8) -> i8[src]

impl<'_> Sub<&'_ Wrapping<u8>> for Wrapping<u8>[src]

type Output = <Wrapping<u8> as Sub<Wrapping<u8>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u8>
) -> <Wrapping<u8> as Sub<Wrapping<u8>>>::Output
[src]

impl<'_> Sub<&'_ f64> for f64[src]

type Output = <f64 as Sub<f64>>::Output

pub fn sub(self, other: &f64) -> <f64 as Sub<f64>>::Output[src]

impl<'a> Sub<Wrapping<i32>> for &'a Wrapping<i32>[src]

type Output = <Wrapping<i32> as Sub<Wrapping<i32>>>::Output

pub fn sub(
    self,
    other: Wrapping<i32>
) -> <Wrapping<i32> as Sub<Wrapping<i32>>>::Output
[src]

impl Sub<Wrapping<i8>> for Wrapping<i8>[src]

type Output = Wrapping<i8>

pub fn sub(self, other: Wrapping<i8>) -> Wrapping<i8>[src]

impl<'a> Sub<Wrapping<u128>> for &'a Wrapping<u128>[src]

type Output = <Wrapping<u128> as Sub<Wrapping<u128>>>::Output

pub fn sub(
    self,
    other: Wrapping<u128>
) -> <Wrapping<u128> as Sub<Wrapping<u128>>>::Output
[src]

impl<'_, '_> Sub<&'_ i64> for &'_ i64[src]

type Output = <i64 as Sub<i64>>::Output

pub fn sub(self, other: &i64) -> <i64 as Sub<i64>>::Output[src]

impl Sub<Wrapping<u8>> for Wrapping<u8>[src]

type Output = Wrapping<u8>

pub fn sub(self, other: Wrapping<u8>) -> Wrapping<u8>[src]

impl<'a> Sub<u8> for &'a u8[src]

type Output = <u8 as Sub<u8>>::Output

pub fn sub(self, other: u8) -> <u8 as Sub<u8>>::Output[src]

impl Sub<Duration> for Duration[src]

type Output = Duration

pub fn sub(self, rhs: Duration) -> Duration[src]

impl Sub<Wrapping<u64>> for Wrapping<u64>[src]

type Output = Wrapping<u64>

pub fn sub(self, other: Wrapping<u64>) -> Wrapping<u64>[src]

impl<'_, '_> Sub<&'_ u16> for &'_ u16[src]

type Output = <u16 as Sub<u16>>::Output

pub fn sub(self, other: &u16) -> <u16 as Sub<u16>>::Output[src]

impl Sub<isize> for isize[src]

type Output = isize

pub fn sub(self, other: isize) -> isize[src]

impl Sub<Wrapping<u128>> for Wrapping<u128>[src]

type Output = Wrapping<u128>

pub fn sub(self, other: Wrapping<u128>) -> Wrapping<u128>[src]

impl Sub<i64> for i64[src]

type Output = i64

pub fn sub(self, other: i64) -> i64[src]

impl Sub<i128> for i128[src]

type Output = i128

pub fn sub(self, other: i128) -> i128[src]

impl<'_> Sub<&'_ i64> for i64[src]

type Output = <i64 as Sub<i64>>::Output

pub fn sub(self, other: &i64) -> <i64 as Sub<i64>>::Output[src]

impl<'a> Sub<u32> for &'a u32[src]

type Output = <u32 as Sub<u32>>::Output

pub fn sub(self, other: u32) -> <u32 as Sub<u32>>::Output[src]

impl<'_, '_> Sub<&'_ i128> for &'_ i128[src]

type Output = <i128 as Sub<i128>>::Output

pub fn sub(self, other: &i128) -> <i128 as Sub<i128>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<usize>> for &'_ Wrapping<usize>[src]

type Output = <Wrapping<usize> as Sub<Wrapping<usize>>>::Output

pub fn sub(
    self,
    other: &Wrapping<usize>
) -> <Wrapping<usize> as Sub<Wrapping<usize>>>::Output
[src]

impl Sub<Wrapping<usize>> for Wrapping<usize>[src]

type Output = Wrapping<usize>

pub fn sub(self, other: Wrapping<usize>) -> Wrapping<usize>[src]

impl<'a> Sub<i128> for &'a i128[src]

type Output = <i128 as Sub<i128>>::Output

pub fn sub(self, other: i128) -> <i128 as Sub<i128>>::Output[src]

impl Sub<u8> for u8[src]

type Output = u8

pub fn sub(self, other: u8) -> u8[src]

impl<'_> Sub<&'_ Wrapping<u128>> for Wrapping<u128>[src]

type Output = <Wrapping<u128> as Sub<Wrapping<u128>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u128>
) -> <Wrapping<u128> as Sub<Wrapping<u128>>>::Output
[src]

impl Sub<Wrapping<i64>> for Wrapping<i64>[src]

type Output = Wrapping<i64>

pub fn sub(self, other: Wrapping<i64>) -> Wrapping<i64>[src]

impl<'_> Sub<&'_ Wrapping<usize>> for Wrapping<usize>[src]

type Output = <Wrapping<usize> as Sub<Wrapping<usize>>>::Output

pub fn sub(
    self,
    other: &Wrapping<usize>
) -> <Wrapping<usize> as Sub<Wrapping<usize>>>::Output
[src]

impl<'_> Sub<&'_ Wrapping<isize>> for Wrapping<isize>[src]

type Output = <Wrapping<isize> as Sub<Wrapping<isize>>>::Output

pub fn sub(
    self,
    other: &Wrapping<isize>
) -> <Wrapping<isize> as Sub<Wrapping<isize>>>::Output
[src]

impl<'_> Sub<&'_ Wrapping<u64>> for Wrapping<u64>[src]

type Output = <Wrapping<u64> as Sub<Wrapping<u64>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u64>
) -> <Wrapping<u64> as Sub<Wrapping<u64>>>::Output
[src]

impl<'_, '_> Sub<&'_ f32> for &'_ f32[src]

type Output = <f32 as Sub<f32>>::Output

pub fn sub(self, other: &f32) -> <f32 as Sub<f32>>::Output[src]

impl Sub<i16> for i16[src]

type Output = i16

pub fn sub(self, other: i16) -> i16[src]

impl<'a> Sub<usize> for &'a usize[src]

type Output = <usize as Sub<usize>>::Output

pub fn sub(self, other: usize) -> <usize as Sub<usize>>::Output[src]

impl<'_, '_> Sub<&'_ f64> for &'_ f64[src]

type Output = <f64 as Sub<f64>>::Output

pub fn sub(self, other: &f64) -> <f64 as Sub<f64>>::Output[src]

impl<'_, '_> Sub<&'_ usize> for &'_ usize[src]

type Output = <usize as Sub<usize>>::Output

pub fn sub(self, other: &usize) -> <usize as Sub<usize>>::Output[src]

impl<'_, '_> Sub<&'_ Wrapping<u8>> for &'_ Wrapping<u8>[src]

type Output = <Wrapping<u8> as Sub<Wrapping<u8>>>::Output

pub fn sub(
    self,
    other: &Wrapping<u8>
) -> <Wrapping<u8> as Sub<Wrapping<u8>>>::Output
[src]

impl<'_, '_, T> Sub<&'_ BTreeSet<T>> for &'_ BTreeSet<T> where
    T: Ord + Clone
[src]

pub fn sub(self, rhs: &BTreeSet<T>) -> BTreeSet<T>[src]

Returns the difference of self and rhs as a new BTreeSet<T>.

Examples

use std::collections::BTreeSet;

let a: BTreeSet<_> = vec![1, 2, 3].into_iter().collect();
let b: BTreeSet<_> = vec![3, 4, 5].into_iter().collect();

let result = &a - &b;
let result_vec: Vec<_> = result.into_iter().collect();
assert_eq!(result_vec, [1, 2]);

type Output = BTreeSet<T>

impl<'a, 'b> Sub<&'b u16> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u16) -> BigUint[src]

impl<'a> Sub<&'a i64> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i64) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b u8> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u8) -> BigInt[src]

impl<'a, 'b> Sub<&'b isize> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &isize) -> BigInt[src]

impl Sub<u64> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: u64) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a i32[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a isize> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &isize) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigUint> for &'b u32[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b i16[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<BigInt> for i64[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b u64> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u64) -> BigUint[src]

impl<'a> Sub<&'a u128> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u128) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a u128[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a i8> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i8) -> BigInt[src]

impl Sub<BigUint> for u64[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigUint> for &'b u128[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl Sub<i128> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: i128) -> BigInt[src]

impl Sub<u64> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: u64) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b i64[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<BigUint> for &'a u128[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<i16> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: i16) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for usize[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigUint> for &'b u16[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl Sub<BigUint> for usize[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<&'a usize> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &usize) -> BigUint[src]

impl<'a> Sub<&'a BigInt> for i32[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<BigUint> for u16[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<&'a u32> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u32) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for u16[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<&'a i16> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i16) -> BigInt[src]

impl<'a> Sub<BigUint> for &'a u16[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<u8> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: u8) -> BigUint[src]

impl Sub<BigInt> for isize[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a u16> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u16) -> BigUint[src]

impl<'a> Sub<&'a u8> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u8) -> BigUint[src]

impl<'a, 'b> Sub<&'b u8> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u8) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b u8[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a u8[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a u64> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u64) -> BigUint[src]

impl<'a> Sub<BigInt> for &'a i16[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a u32> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u32) -> BigUint[src]

impl Sub<BigInt> for i128[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a u16[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b u32> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u32) -> BigUint[src]

impl Sub<BigInt> for i8[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for i128[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<u64> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: u64) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for u8[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a> Sub<&'a BigInt> for u128[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<i32> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: i32) -> BigInt[src]

impl Sub<i16> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: i16) -> BigInt[src]

impl<'a> Sub<&'a u64> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u64) -> BigInt[src]

impl Sub<BigUint> for u8[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl Sub<u8> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: u8) -> BigInt[src]

impl<'a> Sub<usize> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: usize) -> BigUint[src]

impl<'a> Sub<u8> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: u8) -> BigInt[src]

impl Sub<BigInt> for i32[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b u32[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for u64[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a> Sub<&'a BigInt> for i8[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for i16[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<BigUint> for u128[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<i64> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: i64) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a isize[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a u8> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u8) -> BigInt[src]

impl<'a, 'b> Sub<&'b BigInt> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<&'a u128> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u128) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b usize[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<BigInt> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b isize[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b u16> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u16) -> BigInt[src]

impl<'a, 'b> Sub<&'b u64> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u64) -> BigInt[src]

impl<'a, 'b> Sub<&'b i128> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i128) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for u16[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a> Sub<u16> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: u16) -> BigInt[src]

impl Sub<BigInt> for u16[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl Sub<i64> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: i64) -> BigInt[src]

impl Sub<BigInt> for u8[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl Sub<u128> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: u128) -> BigInt[src]

impl<'a> Sub<BigUint> for &'a u64[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b i32[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<u128> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: u128) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for u32[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl Sub<BigUint> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<BigInt> for &'a i8[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<BigUint> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<i128> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: i128) -> BigInt[src]

impl<'a> Sub<&'a u16> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u16) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for u8[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<u64> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: u64) -> BigUint[src]

impl<'a, 'b> Sub<&'b i32> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i32) -> BigInt[src]

impl Sub<u128> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: u128) -> BigUint[src]

impl<'a> Sub<u128> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: u128) -> BigUint[src]

impl<'a> Sub<&'a BigInt> for u64[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b u128> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u128) -> BigInt[src]

impl<'a, 'b> Sub<&'b i64> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i64) -> BigInt[src]

impl<'a> Sub<u32> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: u32) -> BigUint[src]

impl<'a> Sub<usize> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: usize) -> BigInt[src]

impl<'a> Sub<BigUint> for &'a u32[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl<'a> Sub<&'a i128> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i128) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b u16[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a u64[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for u32[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigUint> for &'b u8[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a> Sub<BigUint> for &'a u8[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl Sub<BigUint> for u32[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl Sub<u8> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: u8) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b u128[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<u32> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: u32) -> BigUint[src]

impl Sub<BigInt> for usize[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b u32> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &u32) -> BigInt[src]

impl<'a> Sub<&'a usize> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &usize) -> BigInt[src]

impl<'a> Sub<u16> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: u16) -> BigUint[src]

impl<'a> Sub<BigUint> for &'a usize[src]

type Output = BigUint

pub fn sub(self, other: BigUint) -> BigUint[src]

impl Sub<i8> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: i8) -> BigInt[src]

impl Sub<usize> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: usize) -> BigUint[src]

impl<'a> Sub<BigInt> for &'a usize[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b i16> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i16) -> BigInt[src]

impl Sub<BigInt> for i16[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for i64[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<usize> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: usize) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigUint> for &'b u64[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a> Sub<&'a i32> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i32) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigUint> for &'b usize[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a> Sub<u32> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: u32) -> BigInt[src]

impl<'a, 'b> Sub<&'b usize> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &usize) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for u128[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl Sub<BigInt> for u128[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl Sub<BigInt> for u32[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a i128[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<&'a BigUint> for usize[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b i8[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<i8> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: i8) -> BigInt[src]

impl Sub<BigInt> for u64[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl Sub<u32> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: u32) -> BigInt[src]

impl Sub<u16> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: u16) -> BigInt[src]

impl<'a> Sub<&'a BigInt> for isize[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a i64[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl<'a> Sub<BigInt> for &'a u32[src]

type Output = BigInt

pub fn sub(self, other: BigInt) -> BigInt[src]

impl Sub<u16> for BigUint[src]

type Output = BigUint

pub fn sub(self, other: u16) -> BigUint[src]

impl<'a> Sub<isize> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: isize) -> BigInt[src]

impl<'a, 'b> Sub<&'b i8> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: &i8) -> BigInt[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b i128[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl<'a, 'b> Sub<&'b BigUint> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &BigUint) -> BigUint[src]

impl<'a, 'b> Sub<&'a BigInt> for &'b u64[src]

type Output = BigInt

pub fn sub(self, other: &BigInt) -> BigInt[src]

impl Sub<isize> for BigInt[src]

type Output = BigInt

pub fn sub(self, other: isize) -> BigInt[src]

impl<'a, 'b> Sub<&'b u128> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &u128) -> BigUint[src]

impl<'a, 'b> Sub<&'b usize> for &'a BigUint[src]

type Output = BigUint

pub fn sub(self, other: &usize) -> BigUint[src]

impl<'a> Sub<i32> for &'a BigInt[src]

type Output = BigInt

pub fn sub(self, other: i32) -> BigInt[src]

impl<'a, T> Sub<&'a T> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: &T) -> <Complex<T> as Sub<&'a T>>::Output[src]

impl<'a> Sub<Complex<u64>> for &'a u64[src]

type Output = Complex<u64>

pub fn sub(self, other: Complex<u64>) -> Complex<u64>[src]

impl<'a> Sub<&'a Complex<f64>> for f64[src]

type Output = Complex<f64>

pub fn sub(self, other: &Complex<f64>) -> Complex<f64>[src]

impl<'a> Sub<Complex<f32>> for &'a f32[src]

type Output = Complex<f32>

pub fn sub(self, other: Complex<f32>) -> Complex<f32>[src]

impl<'a> Sub<Complex<i16>> for &'a i16[src]

type Output = Complex<i16>

pub fn sub(self, other: Complex<i16>) -> Complex<i16>[src]

impl<'a, 'b> Sub<&'a Complex<i128>> for &'b i128[src]

type Output = Complex<i128>

pub fn sub(self, other: &Complex<i128>) -> Complex<i128>[src]

impl<'a, 'b> Sub<&'a Complex<i8>> for &'b i8[src]

type Output = Complex<i8>

pub fn sub(self, other: &Complex<i8>) -> Complex<i8>[src]

impl<'a, 'b> Sub<&'a Complex<usize>> for &'b usize[src]

type Output = Complex<usize>

pub fn sub(self, other: &Complex<usize>) -> Complex<usize>[src]

impl<'a> Sub<Complex<isize>> for &'a isize[src]

type Output = Complex<isize>

pub fn sub(self, other: Complex<isize>) -> Complex<isize>[src]

impl<'a, 'b> Sub<&'a Complex<f64>> for &'b f64[src]

type Output = Complex<f64>

pub fn sub(self, other: &Complex<f64>) -> Complex<f64>[src]

impl Sub<Complex<i8>> for i8[src]

type Output = Complex<i8>

pub fn sub(self, other: Complex<i8>) -> <i8 as Sub<Complex<i8>>>::Output[src]

impl<'a, 'b, T> Sub<&'b Complex<T>> for &'a Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(
    self,
    other: &Complex<T>
) -> <&'a Complex<T> as Sub<&'b Complex<T>>>::Output
[src]

impl<'a> Sub<&'a Complex<f32>> for f32[src]

type Output = Complex<f32>

pub fn sub(self, other: &Complex<f32>) -> Complex<f32>[src]

impl<'a, 'b> Sub<&'a Complex<i16>> for &'b i16[src]

type Output = Complex<i16>

pub fn sub(self, other: &Complex<i16>) -> Complex<i16>[src]

impl<'a, 'b, T> Sub<&'a T> for &'b Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: &T) -> <&'b Complex<T> as Sub<&'a T>>::Output[src]

impl<'a> Sub<Complex<u32>> for &'a u32[src]

type Output = Complex<u32>

pub fn sub(self, other: Complex<u32>) -> Complex<u32>[src]

impl<'a> Sub<&'a Complex<i128>> for i128[src]

type Output = Complex<i128>

pub fn sub(self, other: &Complex<i128>) -> Complex<i128>[src]

impl<'a, 'b> Sub<&'a Complex<isize>> for &'b isize[src]

type Output = Complex<isize>

pub fn sub(self, other: &Complex<isize>) -> Complex<isize>[src]

impl<'a> Sub<&'a Complex<u64>> for u64[src]

type Output = Complex<u64>

pub fn sub(self, other: &Complex<u64>) -> Complex<u64>[src]

impl Sub<Complex<f32>> for f32[src]

type Output = Complex<f32>

pub fn sub(self, other: Complex<f32>) -> <f32 as Sub<Complex<f32>>>::Output[src]

impl Sub<Complex<i32>> for i32[src]

type Output = Complex<i32>

pub fn sub(self, other: Complex<i32>) -> <i32 as Sub<Complex<i32>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u16>> for &'b u16[src]

type Output = Complex<u16>

pub fn sub(self, other: &Complex<u16>) -> Complex<u16>[src]

impl<'a> Sub<Complex<u8>> for &'a u8[src]

type Output = Complex<u8>

pub fn sub(self, other: Complex<u8>) -> Complex<u8>[src]

impl<'a, T> Sub<&'a Complex<T>> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(
    self,
    other: &Complex<T>
) -> <Complex<T> as Sub<&'a Complex<T>>>::Output
[src]

impl Sub<Complex<u8>> for u8[src]

type Output = Complex<u8>

pub fn sub(self, other: Complex<u8>) -> <u8 as Sub<Complex<u8>>>::Output[src]

impl<'a> Sub<&'a Complex<isize>> for isize[src]

type Output = Complex<isize>

pub fn sub(self, other: &Complex<isize>) -> Complex<isize>[src]

impl Sub<Complex<u128>> for u128[src]

type Output = Complex<u128>

pub fn sub(self, other: Complex<u128>) -> <u128 as Sub<Complex<u128>>>::Output[src]

impl<'a> Sub<Complex<i32>> for &'a i32[src]

type Output = Complex<i32>

pub fn sub(self, other: Complex<i32>) -> Complex<i32>[src]

impl Sub<Complex<u16>> for u16[src]

type Output = Complex<u16>

pub fn sub(self, other: Complex<u16>) -> <u16 as Sub<Complex<u16>>>::Output[src]

impl<'a> Sub<Complex<i8>> for &'a i8[src]

type Output = Complex<i8>

pub fn sub(self, other: Complex<i8>) -> Complex<i8>[src]

impl<'a, T> Sub<T> for &'a Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: T) -> <&'a Complex<T> as Sub<T>>::Output[src]

impl<'a> Sub<Complex<u128>> for &'a u128[src]

type Output = Complex<u128>

pub fn sub(self, other: Complex<u128>) -> Complex<u128>[src]

impl Sub<Complex<u64>> for u64[src]

type Output = Complex<u64>

pub fn sub(self, other: Complex<u64>) -> <u64 as Sub<Complex<u64>>>::Output[src]

impl<'a> Sub<Complex<u16>> for &'a u16[src]

type Output = Complex<u16>

pub fn sub(self, other: Complex<u16>) -> Complex<u16>[src]

impl<'a, 'b> Sub<&'a Complex<u64>> for &'b u64[src]

type Output = Complex<u64>

pub fn sub(self, other: &Complex<u64>) -> Complex<u64>[src]

impl<'a> Sub<&'a Complex<u8>> for u8[src]

type Output = Complex<u8>

pub fn sub(self, other: &Complex<u8>) -> Complex<u8>[src]

impl<'a> Sub<Complex<i64>> for &'a i64[src]

type Output = Complex<i64>

pub fn sub(self, other: Complex<i64>) -> Complex<i64>[src]

impl<'a, T> Sub<Complex<T>> for &'a Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(
    self,
    other: Complex<T>
) -> <&'a Complex<T> as Sub<Complex<T>>>::Output
[src]

impl<'a> Sub<&'a Complex<i16>> for i16[src]

type Output = Complex<i16>

pub fn sub(self, other: &Complex<i16>) -> Complex<i16>[src]

impl<'a> Sub<&'a Complex<i32>> for i32[src]

type Output = Complex<i32>

pub fn sub(self, other: &Complex<i32>) -> Complex<i32>[src]

impl<'a> Sub<Complex<usize>> for &'a usize[src]

type Output = Complex<usize>

pub fn sub(self, other: Complex<usize>) -> Complex<usize>[src]

impl Sub<Complex<u32>> for u32[src]

type Output = Complex<u32>

pub fn sub(self, other: Complex<u32>) -> <u32 as Sub<Complex<u32>>>::Output[src]

impl<'a> Sub<&'a Complex<i8>> for i8[src]

type Output = Complex<i8>

pub fn sub(self, other: &Complex<i8>) -> Complex<i8>[src]

impl Sub<Complex<i64>> for i64[src]

type Output = Complex<i64>

pub fn sub(self, other: Complex<i64>) -> <i64 as Sub<Complex<i64>>>::Output[src]

impl Sub<Complex<f64>> for f64[src]

type Output = Complex<f64>

pub fn sub(self, other: Complex<f64>) -> <f64 as Sub<Complex<f64>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<i32>> for &'b i32[src]

type Output = Complex<i32>

pub fn sub(self, other: &Complex<i32>) -> Complex<i32>[src]

impl<T> Sub<T> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: T) -> <Complex<T> as Sub<T>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u8>> for &'b u8[src]

type Output = Complex<u8>

pub fn sub(self, other: &Complex<u8>) -> Complex<u8>[src]

impl Sub<Complex<usize>> for usize[src]

type Output = Complex<usize>

pub fn sub(
    self,
    other: Complex<usize>
) -> <usize as Sub<Complex<usize>>>::Output
[src]

impl<'a, 'b> Sub<&'a Complex<i64>> for &'b i64[src]

type Output = Complex<i64>

pub fn sub(self, other: &Complex<i64>) -> Complex<i64>[src]

impl<T> Sub<Complex<T>> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: Complex<T>) -> <Complex<T> as Sub<Complex<T>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u32>> for &'b u32[src]

type Output = Complex<u32>

pub fn sub(self, other: &Complex<u32>) -> Complex<u32>[src]

impl<'a> Sub<&'a Complex<u32>> for u32[src]

type Output = Complex<u32>

pub fn sub(self, other: &Complex<u32>) -> Complex<u32>[src]

impl<'a> Sub<&'a Complex<u16>> for u16[src]

type Output = Complex<u16>

pub fn sub(self, other: &Complex<u16>) -> Complex<u16>[src]

impl<'a> Sub<Complex<f64>> for &'a f64[src]

type Output = Complex<f64>

pub fn sub(self, other: Complex<f64>) -> Complex<f64>[src]

impl<'a, 'b> Sub<&'a Complex<f32>> for &'b f32[src]

type Output = Complex<f32>

pub fn sub(self, other: &Complex<f32>) -> Complex<f32>[src]

impl Sub<Complex<isize>> for isize[src]

type Output = Complex<isize>

pub fn sub(
    self,
    other: Complex<isize>
) -> <isize as Sub<Complex<isize>>>::Output
[src]

impl<'a> Sub<&'a Complex<usize>> for usize[src]

type Output = Complex<usize>

pub fn sub(self, other: &Complex<usize>) -> Complex<usize>[src]

impl<'a> Sub<Complex<i128>> for &'a i128[src]

type Output = Complex<i128>

pub fn sub(self, other: Complex<i128>) -> Complex<i128>[src]

impl Sub<Complex<i16>> for i16[src]

type Output = Complex<i16>

pub fn sub(self, other: Complex<i16>) -> <i16 as Sub<Complex<i16>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u128>> for &'b u128[src]

type Output = Complex<u128>

pub fn sub(self, other: &Complex<u128>) -> Complex<u128>[src]

impl Sub<Complex<i128>> for i128[src]

type Output = Complex<i128>

pub fn sub(self, other: Complex<i128>) -> <i128 as Sub<Complex<i128>>>::Output[src]

impl<'a> Sub<&'a Complex<i64>> for i64[src]

type Output = Complex<i64>

pub fn sub(self, other: &Complex<i64>) -> Complex<i64>[src]

impl<'a> Sub<&'a Complex<u128>> for u128[src]

type Output = Complex<u128>

pub fn sub(self, other: &Complex<u128>) -> Complex<u128>[src]

impl<T> Sub<T> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, rhs: T) -> Ratio<T>[src]

impl<'a, 'b, T> Sub<&'b T> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &'b T) -> Ratio<T>[src]

impl<'a, T> Sub<&'a T> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &T) -> Ratio<T>[src]

impl<T> Sub<Ratio<T>> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, rhs: Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Sub<&'a Ratio<T>> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Sub<T> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: T) -> Ratio<T>[src]

impl<'a, 'b, T> Sub<&'b Ratio<T>> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &'b Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Sub<Ratio<T>> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: Ratio<T>) -> Ratio<T>[src]

impl<T> Sub<Quaternion<T>> for Quaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = Quaternion<T>

pub fn sub(
    self,
    rhs: Quaternion<T>
) -> <Quaternion<T> as Sub<Quaternion<T>>>::Output
[src]

impl<'a, 'b, T, const D: usize> Sub<&'b Point<T, D>> for &'a Point<T, D> where
    T: ClosedSub<T> + Scalar,
    ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D>, Const<D>>>::Representative == Const<D>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>

pub fn sub(
    self,
    right: &'b Point<T, D>
) -> <&'a Point<T, D> as Sub<&'b Point<T, D>>>::Output
[src]

impl<'a, T, D2, SB, const D1: usize> Sub<Matrix<T, D2, Const<1_usize>, SB>> for &'a Point<T, D1> where
    T: Scalar + ClosedSub<T>,
    D2: Dim,
    SB: Storage<T, D2, Const<1_usize>>,
    ShapeConstraint: SameNumberOfRows<Const<D1>, D2>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D1>, D2>>::Representative == Const<D1>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Point<T, D1>

pub fn sub(
    self,
    right: Matrix<T, D2, Const<1_usize>, SB>
) -> <&'a Point<T, D1> as Sub<Matrix<T, D2, Const<1_usize>, SB>>>::Output
[src]

impl<T, const D: usize> Sub<Point<T, D>> for Point<T, D> where
    T: ClosedSub<T> + Scalar,
    ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D>, Const<D>>>::Representative == Const<D>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>

pub fn sub(
    self,
    right: Point<T, D>
) -> <Point<T, D> as Sub<Point<T, D>>>::Output
[src]

impl<'b, T, D2, SB, const D1: usize> Sub<&'b Matrix<T, D2, Const<1_usize>, SB>> for Point<T, D1> where
    T: Scalar + ClosedSub<T>,
    D2: Dim,
    SB: Storage<T, D2, Const<1_usize>>,
    ShapeConstraint: SameNumberOfRows<Const<D1>, D2>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D1>, D2>>::Representative == Const<D1>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Point<T, D1>

pub fn sub(
    self,
    right: &'b Matrix<T, D2, Const<1_usize>, SB>
) -> <Point<T, D1> as Sub<&'b Matrix<T, D2, Const<1_usize>, SB>>>::Output
[src]

impl<'b, T, R1, C1, R2, C2, SA, SB> Sub<&'b Matrix<T, R2, C2, SB>> for Matrix<T, R1, C1, SA> where
    T: Scalar + ClosedSub<T>,
    R2: Dim,
    C2: Dim,
    R1: Dim,
    C1: Dim,
    SB: Storage<T, R2, C2>,
    SA: Storage<T, R1, C1>,
    DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>,
    ShapeConstraint: SameNumberOfRows<R1, R2>,
    ShapeConstraint: SameNumberOfColumns<C1, C2>, 
[src]

type Output = Matrix<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative, <DefaultAllocator as Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>>::Buffer>

pub fn sub(
    self,
    rhs: &'b Matrix<T, R2, C2, SB>
) -> <Matrix<T, R1, C1, SA> as Sub<&'b Matrix<T, R2, C2, SB>>>::Output
[src]

impl<'a, 'b, T, D2, SB, const D1: usize> Sub<&'b Matrix<T, D2, Const<1_usize>, SB>> for &'a Point<T, D1> where
    T: Scalar + ClosedSub<T>,
    D2: Dim,
    SB: Storage<T, D2, Const<1_usize>>,
    ShapeConstraint: SameNumberOfRows<Const<D1>, D2>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D1>, D2>>::Representative == Const<D1>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Point<T, D1>

pub fn sub(
    self,
    right: &'b Matrix<T, D2, Const<1_usize>, SB>
) -> <&'a Point<T, D1> as Sub<&'b Matrix<T, D2, Const<1_usize>, SB>>>::Output
[src]

impl<T> Sub<DualQuaternion<T>> for DualQuaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = DualQuaternion<T>

pub fn sub(
    self,
    rhs: DualQuaternion<T>
) -> <DualQuaternion<T> as Sub<DualQuaternion<T>>>::Output
[src]

impl<'b, T> Sub<&'b DualQuaternion<T>> for DualQuaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = DualQuaternion<T>

pub fn sub(
    self,
    rhs: &'b DualQuaternion<T>
) -> <DualQuaternion<T> as Sub<&'b DualQuaternion<T>>>::Output
[src]

impl<'a, 'b, T, R1, C1, R2, C2, SA, SB> Sub<&'b Matrix<T, R2, C2, SB>> for &'a Matrix<T, R1, C1, SA> where
    T: Scalar + ClosedSub<T>,
    R2: Dim,
    C2: Dim,
    R1: Dim,
    C1: Dim,
    SB: Storage<T, R2, C2>,
    SA: Storage<T, R1, C1>,
    DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>,
    ShapeConstraint: SameNumberOfRows<R1, R2>,
    ShapeConstraint: SameNumberOfColumns<C1, C2>, 
[src]

type Output = Matrix<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative, <DefaultAllocator as Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>>::Buffer>

pub fn sub(
    self,
    rhs: &'b Matrix<T, R2, C2, SB>
) -> <&'a Matrix<T, R1, C1, SA> as Sub<&'b Matrix<T, R2, C2, SB>>>::Output
[src]

impl<'b, T> Sub<&'b Quaternion<T>> for Quaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = Quaternion<T>

pub fn sub(
    self,
    rhs: &'b Quaternion<T>
) -> <Quaternion<T> as Sub<&'b Quaternion<T>>>::Output
[src]

impl Sub<usize> for Dynamic[src]

type Output = Dynamic

pub fn sub(self, rhs: usize) -> Dynamic[src]

impl<'a, 'b, T> Sub<&'b Quaternion<T>> for &'a Quaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = Quaternion<T>

pub fn sub(
    self,
    rhs: &'b Quaternion<T>
) -> <&'a Quaternion<T> as Sub<&'b Quaternion<T>>>::Output
[src]

impl<'a, 'b, T> Sub<&'b DualQuaternion<T>> for &'a DualQuaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = DualQuaternion<T>

pub fn sub(
    self,
    rhs: &'b DualQuaternion<T>
) -> <&'a DualQuaternion<T> as Sub<&'b DualQuaternion<T>>>::Output
[src]

impl<'a, T> Sub<DualQuaternion<T>> for &'a DualQuaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = DualQuaternion<T>

pub fn sub(
    self,
    rhs: DualQuaternion<T>
) -> <&'a DualQuaternion<T> as Sub<DualQuaternion<T>>>::Output
[src]

impl<'a, T, R1, C1, R2, C2, SA, SB> Sub<Matrix<T, R2, C2, SB>> for &'a Matrix<T, R1, C1, SA> where
    T: Scalar + ClosedSub<T>,
    R2: Dim,
    C2: Dim,
    R1: Dim,
    C1: Dim,
    SB: Storage<T, R2, C2>,
    SA: Storage<T, R1, C1>,
    DefaultAllocator: SameShapeAllocator<T, R2, C2, R1, C1>,
    ShapeConstraint: SameNumberOfRows<R2, R1>,
    ShapeConstraint: SameNumberOfColumns<C2, C1>, 
[src]

type Output = Matrix<T, <ShapeConstraint as SameNumberOfRows<R2, R1>>::Representative, <ShapeConstraint as SameNumberOfColumns<C2, C1>>::Representative, <DefaultAllocator as Allocator<T, <ShapeConstraint as SameNumberOfRows<R2, R1>>::Representative, <ShapeConstraint as SameNumberOfColumns<C2, C1>>::Representative>>::Buffer>

pub fn sub(
    self,
    rhs: Matrix<T, R2, C2, SB>
) -> <&'a Matrix<T, R1, C1, SA> as Sub<Matrix<T, R2, C2, SB>>>::Output
[src]

impl<'a, T> Sub<Quaternion<T>> for &'a Quaternion<T> where
    T: SimdRealField,
    <T as SimdValue>::Element: SimdRealField, 
[src]

type Output = Quaternion<T>

pub fn sub(
    self,
    rhs: Quaternion<T>
) -> <&'a Quaternion<T> as Sub<Quaternion<T>>>::Output
[src]

impl<'b, T, const D: usize> Sub<&'b Point<T, D>> for Point<T, D> where
    T: ClosedSub<T> + Scalar,
    ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D>, Const<D>>>::Representative == Const<D>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>

pub fn sub(
    self,
    right: &'b Point<T, D>
) -> <Point<T, D> as Sub<&'b Point<T, D>>>::Output
[src]

impl<T, R1, C1, R2, C2, SA, SB> Sub<Matrix<T, R2, C2, SB>> for Matrix<T, R1, C1, SA> where
    T: Scalar + ClosedSub<T>,
    R2: Dim,
    C2: Dim,
    R1: Dim,
    C1: Dim,
    SB: Storage<T, R2, C2>,
    SA: Storage<T, R1, C1>,
    DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>,
    ShapeConstraint: SameNumberOfRows<R1, R2>,
    ShapeConstraint: SameNumberOfColumns<C1, C2>, 
[src]

type Output = Matrix<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative, <DefaultAllocator as Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>>::Buffer>

pub fn sub(
    self,
    rhs: Matrix<T, R2, C2, SB>
) -> <Matrix<T, R1, C1, SA> as Sub<Matrix<T, R2, C2, SB>>>::Output
[src]

impl<'a, T, const D: usize> Sub<Point<T, D>> for &'a Point<T, D> where
    T: ClosedSub<T> + Scalar,
    ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D>, Const<D>>>::Representative == Const<D>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>

pub fn sub(
    self,
    right: Point<T, D>
) -> <&'a Point<T, D> as Sub<Point<T, D>>>::Output
[src]

impl<T, D2, SB, const D1: usize> Sub<Matrix<T, D2, Const<1_usize>, SB>> for Point<T, D1> where
    T: Scalar + ClosedSub<T>,
    D2: Dim,
    SB: Storage<T, D2, Const<1_usize>>,
    ShapeConstraint: SameNumberOfRows<Const<D1>, D2>,
    ShapeConstraint: SameNumberOfColumns<Const<1_usize>, Const<1_usize>>,
    <ShapeConstraint as SameNumberOfRows<Const<D1>, D2>>::Representative == Const<D1>,
    <ShapeConstraint as SameNumberOfColumns<Const<1_usize>, Const<1_usize>>>::Representative == Const<1_usize>, 
[src]

type Output = Point<T, D1>

pub fn sub(
    self,
    right: Matrix<T, D2, Const<1_usize>, SB>
) -> <Point<T, D1> as Sub<Matrix<T, D2, Const<1_usize>, SB>>>::Output
[src]

impl Sub<AutoSimd<[i16; 2]>> for AutoSimd<[i16; 2]>

type Output = AutoSimd<[i16; 2]>

pub fn sub(self, rhs: AutoSimd<[i16; 2]>) -> AutoSimd<[i16; 2]>

impl Sub<AutoSimd<[f64; 4]>> for AutoSimd<[f64; 4]>

type Output = AutoSimd<[f64; 4]>

pub fn sub(self, rhs: AutoSimd<[f64; 4]>) -> AutoSimd<[f64; 4]>

impl Sub<AutoSimd<[i8; 2]>> for AutoSimd<[i8; 2]>

type Output = AutoSimd<[i8; 2]>

pub fn sub(self, rhs: AutoSimd<[i8; 2]>) -> AutoSimd<[i8; 2]>

impl Sub<AutoSimd<[i16; 8]>> for AutoSimd<[i16; 8]>

type Output = AutoSimd<[i16; 8]>

pub fn sub(self, rhs: AutoSimd<[i16; 8]>) -> AutoSimd<[i16; 8]>

impl Sub<AutoSimd<[u8; 16]>> for AutoSimd<[u8; 16]>

type Output = AutoSimd<[u8; 16]>

pub fn sub(self, rhs: AutoSimd<[u8; 16]>) -> AutoSimd<[u8; 16]>

impl Sub<AutoSimd<[i8; 16]>> for AutoSimd<[i8; 16]>

type Output = AutoSimd<[i8; 16]>

pub fn sub(self, rhs: AutoSimd<[i8; 16]>) -> AutoSimd<[i8; 16]>

impl Sub<AutoSimd<[i16; 4]>> for AutoSimd<[i16; 4]>

type Output = AutoSimd<[i16; 4]>

pub fn sub(self, rhs: AutoSimd<[i16; 4]>) -> AutoSimd<[i16; 4]>

impl Sub<AutoSimd<[u16; 8]>> for AutoSimd<[u16; 8]>

type Output = AutoSimd<[u16; 8]>

pub fn sub(self, rhs: AutoSimd<[u16; 8]>) -> AutoSimd<[u16; 8]>

impl Sub<AutoSimd<[isize; 2]>> for AutoSimd<[isize; 2]>

type Output = AutoSimd<[isize; 2]>

pub fn sub(self, rhs: AutoSimd<[isize; 2]>) -> AutoSimd<[isize; 2]>

impl Sub<AutoSimd<[i128; 2]>> for AutoSimd<[i128; 2]>

type Output = AutoSimd<[i128; 2]>

pub fn sub(self, rhs: AutoSimd<[i128; 2]>) -> AutoSimd<[i128; 2]>

impl Sub<AutoSimd<[i128; 1]>> for AutoSimd<[i128; 1]>

type Output = AutoSimd<[i128; 1]>

pub fn sub(self, rhs: AutoSimd<[i128; 1]>) -> AutoSimd<[i128; 1]>

impl Sub<AutoSimd<[u16; 16]>> for AutoSimd<[u16; 16]>

type Output = AutoSimd<[u16; 16]>

pub fn sub(self, rhs: AutoSimd<[u16; 16]>) -> AutoSimd<[u16; 16]>

impl Sub<AutoSimd<[i32; 2]>> for AutoSimd<[i32; 2]>

type Output = AutoSimd<[i32; 2]>

pub fn sub(self, rhs: AutoSimd<[i32; 2]>) -> AutoSimd<[i32; 2]>

impl Sub<AutoSimd<[i8; 32]>> for AutoSimd<[i8; 32]>

type Output = AutoSimd<[i8; 32]>

pub fn sub(self, rhs: AutoSimd<[i8; 32]>) -> AutoSimd<[i8; 32]>

impl Sub<AutoSimd<[u32; 8]>> for AutoSimd<[u32; 8]>

type Output = AutoSimd<[u32; 8]>

pub fn sub(self, rhs: AutoSimd<[u32; 8]>) -> AutoSimd<[u32; 8]>

impl Sub<AutoSimd<[usize; 2]>> for AutoSimd<[usize; 2]>

type Output = AutoSimd<[usize; 2]>

pub fn sub(self, rhs: AutoSimd<[usize; 2]>) -> AutoSimd<[usize; 2]>

impl Sub<AutoSimd<[f64; 8]>> for AutoSimd<[f64; 8]>

type Output = AutoSimd<[f64; 8]>

pub fn sub(self, rhs: AutoSimd<[f64; 8]>) -> AutoSimd<[f64; 8]>

impl Sub<AutoSimd<[isize; 8]>> for AutoSimd<[isize; 8]>

type Output = AutoSimd<[isize; 8]>

pub fn sub(self, rhs: AutoSimd<[isize; 8]>) -> AutoSimd<[isize; 8]>

impl Sub<AutoSimd<[u64; 8]>> for AutoSimd<[u64; 8]>

type Output = AutoSimd<[u64; 8]>

pub fn sub(self, rhs: AutoSimd<[u64; 8]>) -> AutoSimd<[u64; 8]>

impl Sub<AutoSimd<[u128; 4]>> for AutoSimd<[u128; 4]>

type Output = AutoSimd<[u128; 4]>

pub fn sub(self, rhs: AutoSimd<[u128; 4]>) -> AutoSimd<[u128; 4]>

impl Sub<AutoSimd<[u8; 32]>> for AutoSimd<[u8; 32]>

type Output = AutoSimd<[u8; 32]>

pub fn sub(self, rhs: AutoSimd<[u8; 32]>) -> AutoSimd<[u8; 32]>

impl Sub<AutoSimd<[u128; 1]>> for AutoSimd<[u128; 1]>

type Output = AutoSimd<[u128; 1]>

pub fn sub(self, rhs: AutoSimd<[u128; 1]>) -> AutoSimd<[u128; 1]>

impl Sub<AutoSimd<[i32; 4]>> for AutoSimd<[i32; 4]>

type Output = AutoSimd<[i32; 4]>

pub fn sub(self, rhs: AutoSimd<[i32; 4]>) -> AutoSimd<[i32; 4]>

impl Sub<AutoSimd<[usize; 8]>> for AutoSimd<[usize; 8]>

type Output = AutoSimd<[usize; 8]>

pub fn sub(self, rhs: AutoSimd<[usize; 8]>) -> AutoSimd<[usize; 8]>

impl Sub<AutoSimd<[u64; 4]>> for AutoSimd<[u64; 4]>

type Output = AutoSimd<[u64; 4]>

pub fn sub(self, rhs: AutoSimd<[u64; 4]>) -> AutoSimd<[u64; 4]>

impl Sub<AutoSimd<[u16; 32]>> for AutoSimd<[u16; 32]>

type Output = AutoSimd<[u16; 32]>

pub fn sub(self, rhs: AutoSimd<[u16; 32]>) -> AutoSimd<[u16; 32]>

impl Sub<AutoSimd<[u32; 2]>> for AutoSimd<[u32; 2]>

type Output = AutoSimd<[u32; 2]>

pub fn sub(self, rhs: AutoSimd<[u32; 2]>) -> AutoSimd<[u32; 2]>

impl Sub<AutoSimd<[u64; 2]>> for AutoSimd<[u64; 2]>

type Output = AutoSimd<[u64; 2]>

pub fn sub(self, rhs: AutoSimd<[u64; 2]>) -> AutoSimd<[u64; 2]>

impl Sub<AutoSimd<[u128; 2]>> for AutoSimd<[u128; 2]>

type Output = AutoSimd<[u128; 2]>

pub fn sub(self, rhs: AutoSimd<[u128; 2]>) -> AutoSimd<[u128; 2]>

impl Sub<AutoSimd<[u8; 8]>> for AutoSimd<[u8; 8]>

type Output = AutoSimd<[u8; 8]>

pub fn sub(self, rhs: AutoSimd<[u8; 8]>) -> AutoSimd<[u8; 8]>

impl Sub<AutoSimd<[usize; 4]>> for AutoSimd<[usize; 4]>

type Output = AutoSimd<[usize; 4]>

pub fn sub(self, rhs: AutoSimd<[usize; 4]>) -> AutoSimd<[usize; 4]>

impl Sub<AutoSimd<[u32; 4]>> for AutoSimd<[u32; 4]>

type Output = AutoSimd<[u32; 4]>

pub fn sub(self, rhs: AutoSimd<[u32; 4]>) -> AutoSimd<[u32; 4]>

impl Sub<AutoSimd<[i64; 2]>> for AutoSimd<[i64; 2]>

type Output = AutoSimd<[i64; 2]>

pub fn sub(self, rhs: AutoSimd<[i64; 2]>) -> AutoSimd<[i64; 2]>

impl Sub<AutoSimd<[f64; 2]>> for AutoSimd<[f64; 2]>

type Output = AutoSimd<[f64; 2]>

pub fn sub(self, rhs: AutoSimd<[f64; 2]>) -> AutoSimd<[f64; 2]>

impl Sub<AutoSimd<[u8; 2]>> for AutoSimd<[u8; 2]>

type Output = AutoSimd<[u8; 2]>

pub fn sub(self, rhs: AutoSimd<[u8; 2]>) -> AutoSimd<[u8; 2]>

impl Sub<AutoSimd<[f32; 4]>> for AutoSimd<[f32; 4]>

type Output = AutoSimd<[f32; 4]>

pub fn sub(self, rhs: AutoSimd<[f32; 4]>) -> AutoSimd<[f32; 4]>

impl Sub<AutoSimd<[isize; 4]>> for AutoSimd<[isize; 4]>

type Output = AutoSimd<[isize; 4]>

pub fn sub(self, rhs: AutoSimd<[isize; 4]>) -> AutoSimd<[isize; 4]>

impl Sub<AutoSimd<[i64; 4]>> for AutoSimd<[i64; 4]>

type Output = AutoSimd<[i64; 4]>

pub fn sub(self, rhs: AutoSimd<[i64; 4]>) -> AutoSimd<[i64; 4]>

impl Sub<AutoSimd<[i8; 4]>> for AutoSimd<[i8; 4]>

type Output = AutoSimd<[i8; 4]>

pub fn sub(self, rhs: AutoSimd<[i8; 4]>) -> AutoSimd<[i8; 4]>

impl Sub<AutoSimd<[i64; 8]>> for AutoSimd<[i64; 8]>

type Output = AutoSimd<[i64; 8]>

pub fn sub(self, rhs: AutoSimd<[i64; 8]>) -> AutoSimd<[i64; 8]>

impl Sub<AutoSimd<[u8; 4]>> for AutoSimd<[u8; 4]>

type Output = AutoSimd<[u8; 4]>

pub fn sub(self, rhs: AutoSimd<[u8; 4]>) -> AutoSimd<[u8; 4]>

impl Sub<AutoSimd<[i32; 16]>> for AutoSimd<[i32; 16]>

type Output = AutoSimd<[i32; 16]>

pub fn sub(self, rhs: AutoSimd<[i32; 16]>) -> AutoSimd<[i32; 16]>

impl Sub<AutoSimd<[i16; 16]>> for AutoSimd<[i16; 16]>

type Output = AutoSimd<[i16; 16]>

pub fn sub(self, rhs: AutoSimd<[i16; 16]>) -> AutoSimd<[i16; 16]>

impl Sub<AutoSimd<[u32; 16]>> for AutoSimd<[u32; 16]>

type Output = AutoSimd<[u32; 16]>

pub fn sub(self, rhs: AutoSimd<[u32; 16]>) -> AutoSimd<[u32; 16]>

impl Sub<AutoSimd<[i128; 4]>> for AutoSimd<[i128; 4]>

type Output = AutoSimd<[i128; 4]>

pub fn sub(self, rhs: AutoSimd<[i128; 4]>) -> AutoSimd<[i128; 4]>

impl Sub<AutoSimd<[f32; 2]>> for AutoSimd<[f32; 2]>

type Output = AutoSimd<[f32; 2]>

pub fn sub(self, rhs: AutoSimd<[f32; 2]>) -> AutoSimd<[f32; 2]>

impl Sub<AutoSimd<[i16; 32]>> for AutoSimd<[i16; 32]>

type Output = AutoSimd<[i16; 32]>

pub fn sub(self, rhs: AutoSimd<[i16; 32]>) -> AutoSimd<[i16; 32]>

impl Sub<AutoSimd<[f32; 16]>> for AutoSimd<[f32; 16]>

type Output = AutoSimd<[f32; 16]>

pub fn sub(self, rhs: AutoSimd<[f32; 16]>) -> AutoSimd<[f32; 16]>

impl Sub<AutoSimd<[i32; 8]>> for AutoSimd<[i32; 8]>

type Output = AutoSimd<[i32; 8]>

pub fn sub(self, rhs: AutoSimd<[i32; 8]>) -> AutoSimd<[i32; 8]>

impl Sub<AutoSimd<[i8; 8]>> for AutoSimd<[i8; 8]>

type Output = AutoSimd<[i8; 8]>

pub fn sub(self, rhs: AutoSimd<[i8; 8]>) -> AutoSimd<[i8; 8]>

impl Sub<AutoSimd<[f32; 8]>> for AutoSimd<[f32; 8]>

type Output = AutoSimd<[f32; 8]>

pub fn sub(self, rhs: AutoSimd<[f32; 8]>) -> AutoSimd<[f32; 8]>

impl Sub<AutoSimd<[u16; 4]>> for AutoSimd<[u16; 4]>

type Output = AutoSimd<[u16; 4]>

pub fn sub(self, rhs: AutoSimd<[u16; 4]>) -> AutoSimd<[u16; 4]>

impl Sub<AutoSimd<[u16; 2]>> for AutoSimd<[u16; 2]>

type Output = AutoSimd<[u16; 2]>

pub fn sub(self, rhs: AutoSimd<[u16; 2]>) -> AutoSimd<[u16; 2]>

impl<'a, 'b> Sub<&'a Complex<f64>> for &'b f64[src]

type Output = Complex<f64>

pub fn sub(self, other: &Complex<f64>) -> Complex<f64>[src]

impl<'a, 'b> Sub<&'a Complex<i128>> for &'b i128[src]

type Output = Complex<i128>

pub fn sub(self, other: &Complex<i128>) -> Complex<i128>[src]

impl<'a> Sub<&'a Complex<u64>> for u64[src]

type Output = Complex<u64>

pub fn sub(self, other: &Complex<u64>) -> Complex<u64>[src]

impl Sub<Complex<i32>> for i32[src]

type Output = Complex<i32>

pub fn sub(self, other: Complex<i32>) -> <i32 as Sub<Complex<i32>>>::Output[src]

impl Sub<Complex<u8>> for u8[src]

type Output = Complex<u8>

pub fn sub(self, other: Complex<u8>) -> <u8 as Sub<Complex<u8>>>::Output[src]

impl Sub<Complex<u64>> for u64[src]

type Output = Complex<u64>

pub fn sub(self, other: Complex<u64>) -> <u64 as Sub<Complex<u64>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<isize>> for &'b isize[src]

type Output = Complex<isize>

pub fn sub(self, other: &Complex<isize>) -> Complex<isize>[src]

impl<'a, T> Sub<&'a T> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: &T) -> <Complex<T> as Sub<&'a T>>::Output[src]

impl<'a> Sub<&'a Complex<u128>> for u128[src]

type Output = Complex<u128>

pub fn sub(self, other: &Complex<u128>) -> Complex<u128>[src]

impl<'a> Sub<&'a Complex<isize>> for isize[src]

type Output = Complex<isize>

pub fn sub(self, other: &Complex<isize>) -> Complex<isize>[src]

impl<'a> Sub<Complex<i8>> for &'a i8[src]

type Output = Complex<i8>

pub fn sub(self, other: Complex<i8>) -> Complex<i8>[src]

impl<'a, T> Sub<Complex<T>> for &'a Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(
    self,
    other: Complex<T>
) -> <&'a Complex<T> as Sub<Complex<T>>>::Output
[src]

impl<'a> Sub<Complex<u64>> for &'a u64[src]

type Output = Complex<u64>

pub fn sub(self, other: Complex<u64>) -> Complex<u64>[src]

impl Sub<Complex<i16>> for i16[src]

type Output = Complex<i16>

pub fn sub(self, other: Complex<i16>) -> <i16 as Sub<Complex<i16>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u64>> for &'b u64[src]

type Output = Complex<u64>

pub fn sub(self, other: &Complex<u64>) -> Complex<u64>[src]

impl<'a, 'b> Sub<&'a Complex<f32>> for &'b f32[src]

type Output = Complex<f32>

pub fn sub(self, other: &Complex<f32>) -> Complex<f32>[src]

impl<T> Sub<Complex<T>> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: Complex<T>) -> <Complex<T> as Sub<Complex<T>>>::Output[src]

impl<'a, 'b, T> Sub<&'a T> for &'b Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: &T) -> <&'b Complex<T> as Sub<&'a T>>::Output[src]

impl Sub<Complex<u32>> for u32[src]

type Output = Complex<u32>

pub fn sub(self, other: Complex<u32>) -> <u32 as Sub<Complex<u32>>>::Output[src]

impl<'a> Sub<Complex<u8>> for &'a u8[src]

type Output = Complex<u8>

pub fn sub(self, other: Complex<u8>) -> Complex<u8>[src]

impl<'a> Sub<&'a Complex<i128>> for i128[src]

type Output = Complex<i128>

pub fn sub(self, other: &Complex<i128>) -> Complex<i128>[src]

impl<'a> Sub<Complex<f32>> for &'a f32[src]

type Output = Complex<f32>

pub fn sub(self, other: Complex<f32>) -> Complex<f32>[src]

impl<'a> Sub<&'a Complex<i16>> for i16[src]

type Output = Complex<i16>

pub fn sub(self, other: &Complex<i16>) -> Complex<i16>[src]

impl Sub<Complex<f64>> for f64[src]

type Output = Complex<f64>

pub fn sub(self, other: Complex<f64>) -> <f64 as Sub<Complex<f64>>>::Output[src]

impl<'a> Sub<&'a Complex<i8>> for i8[src]

type Output = Complex<i8>

pub fn sub(self, other: &Complex<i8>) -> Complex<i8>[src]

impl<'a> Sub<&'a Complex<u8>> for u8[src]

type Output = Complex<u8>

pub fn sub(self, other: &Complex<u8>) -> Complex<u8>[src]

impl<'a> Sub<&'a Complex<usize>> for usize[src]

type Output = Complex<usize>

pub fn sub(self, other: &Complex<usize>) -> Complex<usize>[src]

impl Sub<Complex<isize>> for isize[src]

type Output = Complex<isize>

pub fn sub(
    self,
    other: Complex<isize>
) -> <isize as Sub<Complex<isize>>>::Output
[src]

impl Sub<Complex<i8>> for i8[src]

type Output = Complex<i8>

pub fn sub(self, other: Complex<i8>) -> <i8 as Sub<Complex<i8>>>::Output[src]

impl<'a> Sub<&'a Complex<u32>> for u32[src]

type Output = Complex<u32>

pub fn sub(self, other: &Complex<u32>) -> Complex<u32>[src]

impl<'a> Sub<&'a Complex<u16>> for u16[src]

type Output = Complex<u16>

pub fn sub(self, other: &Complex<u16>) -> Complex<u16>[src]

impl<'a, 'b> Sub<&'a Complex<i64>> for &'b i64[src]

type Output = Complex<i64>

pub fn sub(self, other: &Complex<i64>) -> Complex<i64>[src]

impl Sub<Complex<i64>> for i64[src]

type Output = Complex<i64>

pub fn sub(self, other: Complex<i64>) -> <i64 as Sub<Complex<i64>>>::Output[src]

impl<T> Sub<T> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: T) -> <Complex<T> as Sub<T>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<i32>> for &'b i32[src]

type Output = Complex<i32>

pub fn sub(self, other: &Complex<i32>) -> Complex<i32>[src]

impl<'a> Sub<Complex<i16>> for &'a i16[src]

type Output = Complex<i16>

pub fn sub(self, other: Complex<i16>) -> Complex<i16>[src]

impl<'a> Sub<Complex<u16>> for &'a u16[src]

type Output = Complex<u16>

pub fn sub(self, other: Complex<u16>) -> Complex<u16>[src]

impl<'a, T> Sub<T> for &'a Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(self, other: T) -> <&'a Complex<T> as Sub<T>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u16>> for &'b u16[src]

type Output = Complex<u16>

pub fn sub(self, other: &Complex<u16>) -> Complex<u16>[src]

impl<'a> Sub<&'a Complex<i32>> for i32[src]

type Output = Complex<i32>

pub fn sub(self, other: &Complex<i32>) -> Complex<i32>[src]

impl<'a, 'b> Sub<&'a Complex<u128>> for &'b u128[src]

type Output = Complex<u128>

pub fn sub(self, other: &Complex<u128>) -> Complex<u128>[src]

impl<'a> Sub<Complex<isize>> for &'a isize[src]

type Output = Complex<isize>

pub fn sub(self, other: Complex<isize>) -> Complex<isize>[src]

impl<'a> Sub<Complex<i64>> for &'a i64[src]

type Output = Complex<i64>

pub fn sub(self, other: Complex<i64>) -> Complex<i64>[src]

impl<'a> Sub<Complex<usize>> for &'a usize[src]

type Output = Complex<usize>

pub fn sub(self, other: Complex<usize>) -> Complex<usize>[src]

impl Sub<Complex<i128>> for i128[src]

type Output = Complex<i128>

pub fn sub(self, other: Complex<i128>) -> <i128 as Sub<Complex<i128>>>::Output[src]

impl Sub<Complex<f32>> for f32[src]

type Output = Complex<f32>

pub fn sub(self, other: Complex<f32>) -> <f32 as Sub<Complex<f32>>>::Output[src]

impl<'a> Sub<Complex<i128>> for &'a i128[src]

type Output = Complex<i128>

pub fn sub(self, other: Complex<i128>) -> Complex<i128>[src]

impl<'a> Sub<&'a Complex<f32>> for f32[src]

type Output = Complex<f32>

pub fn sub(self, other: &Complex<f32>) -> Complex<f32>[src]

impl<'a> Sub<&'a Complex<i64>> for i64[src]

type Output = Complex<i64>

pub fn sub(self, other: &Complex<i64>) -> Complex<i64>[src]

impl<'a, 'b> Sub<&'a Complex<i16>> for &'b i16[src]

type Output = Complex<i16>

pub fn sub(self, other: &Complex<i16>) -> Complex<i16>[src]

impl Sub<Complex<usize>> for usize[src]

type Output = Complex<usize>

pub fn sub(
    self,
    other: Complex<usize>
) -> <usize as Sub<Complex<usize>>>::Output
[src]

impl<'a, 'b, T> Sub<&'b Complex<T>> for &'a Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(
    self,
    other: &Complex<T>
) -> <&'a Complex<T> as Sub<&'b Complex<T>>>::Output
[src]

impl<'a> Sub<Complex<u32>> for &'a u32[src]

type Output = Complex<u32>

pub fn sub(self, other: Complex<u32>) -> Complex<u32>[src]

impl<'a> Sub<Complex<i32>> for &'a i32[src]

type Output = Complex<i32>

pub fn sub(self, other: Complex<i32>) -> Complex<i32>[src]

impl<'a, T> Sub<&'a Complex<T>> for Complex<T> where
    T: Clone + Num
[src]

type Output = Complex<T>

pub fn sub(
    self,
    other: &Complex<T>
) -> <Complex<T> as Sub<&'a Complex<T>>>::Output
[src]

impl Sub<Complex<u128>> for u128[src]

type Output = Complex<u128>

pub fn sub(self, other: Complex<u128>) -> <u128 as Sub<Complex<u128>>>::Output[src]

impl<'a, 'b> Sub<&'a Complex<u32>> for &'b u32[src]

type Output = Complex<u32>

pub fn sub(self, other: &Complex<u32>) -> Complex<u32>[src]

impl<'a> Sub<Complex<u128>> for &'a u128[src]

type Output = Complex<u128>

pub fn sub(self, other: Complex<u128>) -> Complex<u128>[src]

impl<'a, 'b> Sub<&'a Complex<usize>> for &'b usize[src]

type Output = Complex<usize>

pub fn sub(self, other: &Complex<usize>) -> Complex<usize>[src]

impl<'a, 'b> Sub<&'a Complex<i8>> for &'b i8[src]

type Output = Complex<i8>

pub fn sub(self, other: &Complex<i8>) -> Complex<i8>[src]

impl<'a> Sub<Complex<f64>> for &'a f64[src]

type Output = Complex<f64>

pub fn sub(self, other: Complex<f64>) -> Complex<f64>[src]

impl<'a, 'b> Sub<&'a Complex<u8>> for &'b u8[src]

type Output = Complex<u8>

pub fn sub(self, other: &Complex<u8>) -> Complex<u8>[src]

impl<'a> Sub<&'a Complex<f64>> for f64[src]

type Output = Complex<f64>

pub fn sub(self, other: &Complex<f64>) -> Complex<f64>[src]

impl Sub<Complex<u16>> for u16[src]

type Output = Complex<u16>

pub fn sub(self, other: Complex<u16>) -> <u16 as Sub<Complex<u16>>>::Output[src]

impl<Ul, Ur> Sub<PInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero + Add<Ur>,
    Ur: Unsigned + NonZero,
    <Ul as Add<Ur>>::Output: Unsigned,
    <Ul as Add<Ur>>::Output: NonZero, 

N(Ul) - P(Ur) = N(Ul + Ur)

type Output = NInt<<Ul as Add<Ur>>::Output>

pub fn sub(self, PInt<Ur>) -> <NInt<Ul> as Sub<PInt<Ur>>>::Output

impl<U, B> Sub<B0> for UInt<U, B> where
    U: Unsigned,
    B: Bit, 

UInt - B0 = UInt

type Output = UInt<U, B>

pub fn sub(self, B0) -> <UInt<U, B> as Sub<B0>>::Output

impl<Ul, Ur> Sub<NInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero + Cmp<Ul> + PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>, 

N(Ul) - N(Ur): We resolve this with our PrivateAdd

type Output = <Ur as PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>>::Output

pub fn sub(self, rhs: NInt<Ur>) -> <NInt<Ul> as Sub<NInt<Ur>>>::Output

impl<U> Sub<B1> for UInt<U, B0> where
    U: Unsigned + Sub<B1>,
    <U as Sub<B1>>::Output: Unsigned, 

UInt<U, B0> - B1 = UInt<U - B1, B1>

type Output = UInt<<U as Sub<B1>>::Output, B1>

pub fn sub(self, B1) -> <UInt<U, B0> as Sub<B1>>::Output

impl Sub<B0> for UTerm

UTerm - B0 = Term

type Output = UTerm

pub fn sub(self, B0) -> <UTerm as Sub<B0>>::Output

impl<Ul, Ur> Sub<NInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Add<Ur>,
    Ur: Unsigned + NonZero,
    <Ul as Add<Ur>>::Output: Unsigned,
    <Ul as Add<Ur>>::Output: NonZero, 

P(Ul) - N(Ur) = P(Ul + Ur)

type Output = PInt<<Ul as Add<Ur>>::Output>

pub fn sub(self, NInt<Ur>) -> <PInt<Ul> as Sub<NInt<Ur>>>::Output

impl Sub<B1> for UInt<UTerm, B1>

UInt<UTerm, B1> - B1 = UTerm

type Output = UTerm

pub fn sub(self, B1) -> <UInt<UTerm, B1> as Sub<B1>>::Output

impl Sub<ATerm> for ATerm

type Output = ATerm

pub fn sub(self, ATerm) -> <ATerm as Sub<ATerm>>::Output

impl<U> Sub<Z0> for PInt<U> where
    U: Unsigned + NonZero, 

PInt - Z0 = PInt

type Output = PInt<U>

pub fn sub(self, Z0) -> <PInt<U> as Sub<Z0>>::Output

impl Sub<UTerm> for UTerm

UTerm - UTerm = UTerm

type Output = UTerm

pub fn sub(self, UTerm) -> <UTerm as Sub<UTerm>>::Output

impl<U, B> Sub<B1> for UInt<UInt<U, B>, B1> where
    U: Unsigned,
    B: Bit, 

UInt<U, B1> - B1 = UInt<U, B0>

type Output = UInt<UInt<U, B>, B0>

pub fn sub(self, B1) -> <UInt<UInt<U, B>, B1> as Sub<B1>>::Output

impl<U> Sub<PInt<U>> for Z0 where
    U: Unsigned + NonZero, 

Z0 - P = N

type Output = NInt<U>

pub fn sub(self, PInt<U>) -> <Z0 as Sub<PInt<U>>>::Output

impl<U> Sub<Z0> for NInt<U> where
    U: Unsigned + NonZero, 

NInt - Z0 = NInt

type Output = NInt<U>

pub fn sub(self, Z0) -> <NInt<U> as Sub<Z0>>::Output

impl<Ul, Bl, Ur> Sub<Ur> for UInt<Ul, Bl> where
    Ul: Unsigned,
    Ur: Unsigned,
    Bl: Bit,
    UInt<Ul, Bl>: PrivateSub<Ur>,
    <UInt<Ul, Bl> as PrivateSub<Ur>>::Output: Trim, 

Subtracting unsigned integers. We just do our PrivateSub and then Trim the output.

type Output = <<UInt<Ul, Bl> as PrivateSub<Ur>>::Output as Trim>::Output

pub fn sub(self, rhs: Ur) -> <UInt<Ul, Bl> as Sub<Ur>>::Output

impl<Ul, Ur> Sub<PInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Cmp<Ur> + PrivateIntegerAdd<<Ul as Cmp<Ur>>::Output, Ur>,
    Ur: Unsigned + NonZero, 

P(Ul) - P(Ur): We resolve this with our PrivateAdd

type Output = <Ul as PrivateIntegerAdd<<Ul as Cmp<Ur>>::Output, Ur>>::Output

pub fn sub(self, rhs: PInt<Ur>) -> <PInt<Ul> as Sub<PInt<Ur>>>::Output

impl<U> Sub<NInt<U>> for Z0 where
    U: Unsigned + NonZero, 

Z0 - N = P

type Output = PInt<U>

pub fn sub(self, NInt<U>) -> <Z0 as Sub<NInt<U>>>::Output

impl<Vl, Al, Vr, Ar> Sub<TArr<Vr, Ar>> for TArr<Vl, Al> where
    Vl: Sub<Vr>,
    Al: Sub<Ar>, 

type Output = TArr<<Vl as Sub<Vr>>::Output, <Al as Sub<Ar>>::Output>

pub fn sub(
    self,
    rhs: TArr<Vr, Ar>
) -> <TArr<Vl, Al> as Sub<TArr<Vr, Ar>>>::Output

impl Sub<Z0> for Z0

Z0 - Z0 = Z0

type Output = Z0

pub fn sub(self, Z0) -> <Z0 as Sub<Z0>>::Output

impl<'a, 'b, T> Sub<&'b Ratio<T>> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &'b Ratio<T>) -> Ratio<T>[src]

impl<T> Sub<Ratio<T>> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, rhs: Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Sub<T> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: T) -> Ratio<T>[src]

impl<'a, T> Sub<Ratio<T>> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Sub<&'a T> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &T) -> Ratio<T>[src]

impl<'a, 'b, T> Sub<&'b T> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &'b T) -> Ratio<T>[src]

impl<T> Sub<T> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, rhs: T) -> Ratio<T>[src]

impl<'a, T> Sub<&'a Ratio<T>> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn sub(self, other: &Ratio<T>) -> Ratio<T>[src]

Implementors

impl<'_, '_, T, S> Sub<&'_ HashSet<T, S>> for &'_ HashSet<T, S> where
    T: Eq + Hash + Clone,
    S: BuildHasher + Default
[src]

pub fn sub(self, rhs: &HashSet<T, S>) -> HashSet<T, S>[src]

Returns the difference of self and rhs as a new HashSet<T, S>.

Examples

use std::collections::HashSet;

let a: HashSet<_> = vec![1, 2, 3].into_iter().collect();
let b: HashSet<_> = vec![3, 4, 5].into_iter().collect();

let set = &a - &b;

let mut i = 0;
let expected = [1, 2];
for x in &set {
    assert!(expected.contains(x));
    i += 1;
}
assert_eq!(i, expected.len());

type Output = HashSet<T, S>