Trait caffe2_imports::Sub
1.0.0 · source · pub trait Sub<Rhs = Self> {
type Output;
// Required method
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
Sub
tractable 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 });
Required Associated Types§
Required Methods§
Implementors§
source§impl Sub<&Saturating<i8>> for &Saturating<i8>
impl Sub<&Saturating<i8>> for &Saturating<i8>
type Output = <Saturating<i8> as Sub<Saturating<i8>>>::Output
source§impl Sub<&Saturating<i8>> for Saturating<i8>
impl Sub<&Saturating<i8>> for Saturating<i8>
type Output = <Saturating<i8> as Sub<Saturating<i8>>>::Output
source§impl Sub<&Saturating<i16>> for &Saturating<i16>
impl Sub<&Saturating<i16>> for &Saturating<i16>
type Output = <Saturating<i16> as Sub<Saturating<i16>>>::Output
source§impl Sub<&Saturating<i16>> for Saturating<i16>
impl Sub<&Saturating<i16>> for Saturating<i16>
type Output = <Saturating<i16> as Sub<Saturating<i16>>>::Output
source§impl Sub<&Saturating<i32>> for &Saturating<i32>
impl Sub<&Saturating<i32>> for &Saturating<i32>
type Output = <Saturating<i32> as Sub<Saturating<i32>>>::Output
source§impl Sub<&Saturating<i32>> for Saturating<i32>
impl Sub<&Saturating<i32>> for Saturating<i32>
type Output = <Saturating<i32> as Sub<Saturating<i32>>>::Output
source§impl Sub<&Saturating<i64>> for &Saturating<i64>
impl Sub<&Saturating<i64>> for &Saturating<i64>
type Output = <Saturating<i64> as Sub<Saturating<i64>>>::Output
source§impl Sub<&Saturating<i64>> for Saturating<i64>
impl Sub<&Saturating<i64>> for Saturating<i64>
type Output = <Saturating<i64> as Sub<Saturating<i64>>>::Output
source§impl Sub<&Saturating<i128>> for &Saturating<i128>
impl Sub<&Saturating<i128>> for &Saturating<i128>
type Output = <Saturating<i128> as Sub<Saturating<i128>>>::Output
source§impl Sub<&Saturating<i128>> for Saturating<i128>
impl Sub<&Saturating<i128>> for Saturating<i128>
type Output = <Saturating<i128> as Sub<Saturating<i128>>>::Output
source§impl Sub<&Saturating<isize>> for &Saturating<isize>
impl Sub<&Saturating<isize>> for &Saturating<isize>
type Output = <Saturating<isize> as Sub<Saturating<isize>>>::Output
source§impl Sub<&Saturating<isize>> for Saturating<isize>
impl Sub<&Saturating<isize>> for Saturating<isize>
type Output = <Saturating<isize> as Sub<Saturating<isize>>>::Output
source§impl Sub<&Saturating<u8>> for &Saturating<u8>
impl Sub<&Saturating<u8>> for &Saturating<u8>
type Output = <Saturating<u8> as Sub<Saturating<u8>>>::Output
source§impl Sub<&Saturating<u8>> for Saturating<u8>
impl Sub<&Saturating<u8>> for Saturating<u8>
type Output = <Saturating<u8> as Sub<Saturating<u8>>>::Output
source§impl Sub<&Saturating<u16>> for &Saturating<u16>
impl Sub<&Saturating<u16>> for &Saturating<u16>
type Output = <Saturating<u16> as Sub<Saturating<u16>>>::Output
source§impl Sub<&Saturating<u16>> for Saturating<u16>
impl Sub<&Saturating<u16>> for Saturating<u16>
type Output = <Saturating<u16> as Sub<Saturating<u16>>>::Output
source§impl Sub<&Saturating<u32>> for &Saturating<u32>
impl Sub<&Saturating<u32>> for &Saturating<u32>
type Output = <Saturating<u32> as Sub<Saturating<u32>>>::Output
source§impl Sub<&Saturating<u32>> for Saturating<u32>
impl Sub<&Saturating<u32>> for Saturating<u32>
type Output = <Saturating<u32> as Sub<Saturating<u32>>>::Output
source§impl Sub<&Saturating<u64>> for &Saturating<u64>
impl Sub<&Saturating<u64>> for &Saturating<u64>
type Output = <Saturating<u64> as Sub<Saturating<u64>>>::Output
source§impl Sub<&Saturating<u64>> for Saturating<u64>
impl Sub<&Saturating<u64>> for Saturating<u64>
type Output = <Saturating<u64> as Sub<Saturating<u64>>>::Output
source§impl Sub<&Saturating<u128>> for &Saturating<u128>
impl Sub<&Saturating<u128>> for &Saturating<u128>
type Output = <Saturating<u128> as Sub<Saturating<u128>>>::Output
source§impl Sub<&Saturating<u128>> for Saturating<u128>
impl Sub<&Saturating<u128>> for Saturating<u128>
type Output = <Saturating<u128> as Sub<Saturating<u128>>>::Output
source§impl Sub<&Saturating<usize>> for &Saturating<usize>
impl Sub<&Saturating<usize>> for &Saturating<usize>
type Output = <Saturating<usize> as Sub<Saturating<usize>>>::Output
source§impl Sub<&Saturating<usize>> for Saturating<usize>
impl Sub<&Saturating<usize>> for Saturating<usize>
type Output = <Saturating<usize> as Sub<Saturating<usize>>>::Output
source§impl Sub<&Mat> for MatExprResult<&Mat>
impl Sub<&Mat> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<&Mat> for MatExprResult<&MatExpr>
impl Sub<&Mat> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<&Mat> for MatExprResult<Mat>
impl Sub<&Mat> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<&Mat> for MatExprResult<MatExpr>
impl Sub<&Mat> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<&MatExpr> for MatExprResult<&Mat>
impl Sub<&MatExpr> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<&MatExpr> for MatExprResult<&MatExpr>
impl Sub<&MatExpr> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<&MatExpr> for MatExprResult<Mat>
impl Sub<&MatExpr> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<&MatExpr> for MatExprResult<MatExpr>
impl Sub<&MatExpr> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for &Mat
impl Sub<MatExprResult<&Mat>> for &Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for &MatExpr
impl Sub<MatExprResult<&Mat>> for &MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExprResult<&Mat>
impl Sub<MatExprResult<&Mat>> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExprResult<&MatExpr>
impl Sub<MatExprResult<&Mat>> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExprResult<&VecN<f64, 4>>
impl Sub<MatExprResult<&Mat>> for MatExprResult<&VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExprResult<Mat>
impl Sub<MatExprResult<&Mat>> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExprResult<MatExpr>
impl Sub<MatExprResult<&Mat>> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExprResult<VecN<f64, 4>>
impl Sub<MatExprResult<&Mat>> for MatExprResult<VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for Mat
impl Sub<MatExprResult<&Mat>> for Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&Mat>> for MatExpr
impl Sub<MatExprResult<&Mat>> for MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for &Mat
impl Sub<MatExprResult<&MatExpr>> for &Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for &MatExpr
impl Sub<MatExprResult<&MatExpr>> for &MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExprResult<&Mat>
impl Sub<MatExprResult<&MatExpr>> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExprResult<&MatExpr>
impl Sub<MatExprResult<&MatExpr>> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExprResult<&VecN<f64, 4>>
impl Sub<MatExprResult<&MatExpr>> for MatExprResult<&VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExprResult<Mat>
impl Sub<MatExprResult<&MatExpr>> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExprResult<MatExpr>
impl Sub<MatExprResult<&MatExpr>> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExprResult<VecN<f64, 4>>
impl Sub<MatExprResult<&MatExpr>> for MatExprResult<VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for Mat
impl Sub<MatExprResult<&MatExpr>> for Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&MatExpr>> for MatExpr
impl Sub<MatExprResult<&MatExpr>> for MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<&Mat>
impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<&MatExpr>
impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<Mat>
impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<MatExpr>
impl Sub<MatExprResult<&VecN<f64, 4>>> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for &Mat
impl Sub<MatExprResult<Mat>> for &Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for &MatExpr
impl Sub<MatExprResult<Mat>> for &MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExprResult<&Mat>
impl Sub<MatExprResult<Mat>> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExprResult<&MatExpr>
impl Sub<MatExprResult<Mat>> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExprResult<&VecN<f64, 4>>
impl Sub<MatExprResult<Mat>> for MatExprResult<&VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExprResult<Mat>
impl Sub<MatExprResult<Mat>> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExprResult<MatExpr>
impl Sub<MatExprResult<Mat>> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExprResult<VecN<f64, 4>>
impl Sub<MatExprResult<Mat>> for MatExprResult<VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for Mat
impl Sub<MatExprResult<Mat>> for Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<Mat>> for MatExpr
impl Sub<MatExprResult<Mat>> for MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for &Mat
impl Sub<MatExprResult<MatExpr>> for &Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for &MatExpr
impl Sub<MatExprResult<MatExpr>> for &MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExprResult<&Mat>
impl Sub<MatExprResult<MatExpr>> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExprResult<&MatExpr>
impl Sub<MatExprResult<MatExpr>> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExprResult<&VecN<f64, 4>>
impl Sub<MatExprResult<MatExpr>> for MatExprResult<&VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExprResult<Mat>
impl Sub<MatExprResult<MatExpr>> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExprResult<MatExpr>
impl Sub<MatExprResult<MatExpr>> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExprResult<VecN<f64, 4>>
impl Sub<MatExprResult<MatExpr>> for MatExprResult<VecN<f64, 4>>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for Mat
impl Sub<MatExprResult<MatExpr>> for Mat
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<MatExpr>> for MatExpr
impl Sub<MatExprResult<MatExpr>> for MatExpr
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<&Mat>
impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<&MatExpr>
impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<Mat>
impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<MatExpr>
impl Sub<MatExprResult<VecN<f64, 4>>> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<Saturating<i8>> for Saturating<i8>
impl Sub<Saturating<i8>> for Saturating<i8>
type Output = Saturating<i8>
source§impl Sub<Saturating<i16>> for Saturating<i16>
impl Sub<Saturating<i16>> for Saturating<i16>
type Output = Saturating<i16>
source§impl Sub<Saturating<i32>> for Saturating<i32>
impl Sub<Saturating<i32>> for Saturating<i32>
type Output = Saturating<i32>
source§impl Sub<Saturating<i64>> for Saturating<i64>
impl Sub<Saturating<i64>> for Saturating<i64>
type Output = Saturating<i64>
source§impl Sub<Saturating<i128>> for Saturating<i128>
impl Sub<Saturating<i128>> for Saturating<i128>
type Output = Saturating<i128>
source§impl Sub<Saturating<isize>> for Saturating<isize>
impl Sub<Saturating<isize>> for Saturating<isize>
type Output = Saturating<isize>
source§impl Sub<Saturating<u8>> for Saturating<u8>
impl Sub<Saturating<u8>> for Saturating<u8>
type Output = Saturating<u8>
source§impl Sub<Saturating<u16>> for Saturating<u16>
impl Sub<Saturating<u16>> for Saturating<u16>
type Output = Saturating<u16>
source§impl Sub<Saturating<u32>> for Saturating<u32>
impl Sub<Saturating<u32>> for Saturating<u32>
type Output = Saturating<u32>
source§impl Sub<Saturating<u64>> for Saturating<u64>
impl Sub<Saturating<u64>> for Saturating<u64>
type Output = Saturating<u64>
source§impl Sub<Saturating<u128>> for Saturating<u128>
impl Sub<Saturating<u128>> for Saturating<u128>
type Output = Saturating<u128>
source§impl Sub<Saturating<usize>> for Saturating<usize>
impl Sub<Saturating<usize>> for Saturating<usize>
type Output = Saturating<usize>
1.8.0 · source§impl Sub<Duration> for SystemTime
impl Sub<Duration> for SystemTime
type Output = SystemTime
source§impl Sub<Mat> for MatExprResult<&Mat>
impl Sub<Mat> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<Mat> for MatExprResult<&MatExpr>
impl Sub<Mat> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<Mat> for MatExprResult<Mat>
impl Sub<Mat> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<Mat> for MatExprResult<MatExpr>
impl Sub<Mat> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExpr> for MatExprResult<&Mat>
impl Sub<MatExpr> for MatExprResult<&Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExpr> for MatExprResult<&MatExpr>
impl Sub<MatExpr> for MatExprResult<&MatExpr>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExpr> for MatExprResult<Mat>
impl Sub<MatExpr> for MatExprResult<Mat>
type Output = MatExprResult<MatExpr>
source§impl Sub<MatExpr> for MatExprResult<MatExpr>
impl Sub<MatExpr> for MatExprResult<MatExpr>
type Output = MatExprResult<MatExpr>
source§impl<'a> Sub<Saturating<i8>> for &'a Saturating<i8>
impl<'a> Sub<Saturating<i8>> for &'a Saturating<i8>
type Output = <Saturating<i8> as Sub<Saturating<i8>>>::Output
source§impl<'a> Sub<Saturating<i16>> for &'a Saturating<i16>
impl<'a> Sub<Saturating<i16>> for &'a Saturating<i16>
type Output = <Saturating<i16> as Sub<Saturating<i16>>>::Output
source§impl<'a> Sub<Saturating<i32>> for &'a Saturating<i32>
impl<'a> Sub<Saturating<i32>> for &'a Saturating<i32>
type Output = <Saturating<i32> as Sub<Saturating<i32>>>::Output
source§impl<'a> Sub<Saturating<i64>> for &'a Saturating<i64>
impl<'a> Sub<Saturating<i64>> for &'a Saturating<i64>
type Output = <Saturating<i64> as Sub<Saturating<i64>>>::Output
source§impl<'a> Sub<Saturating<i128>> for &'a Saturating<i128>
impl<'a> Sub<Saturating<i128>> for &'a Saturating<i128>
type Output = <Saturating<i128> as Sub<Saturating<i128>>>::Output
source§impl<'a> Sub<Saturating<isize>> for &'a Saturating<isize>
impl<'a> Sub<Saturating<isize>> for &'a Saturating<isize>
type Output = <Saturating<isize> as Sub<Saturating<isize>>>::Output
source§impl<'a> Sub<Saturating<u8>> for &'a Saturating<u8>
impl<'a> Sub<Saturating<u8>> for &'a Saturating<u8>
type Output = <Saturating<u8> as Sub<Saturating<u8>>>::Output
source§impl<'a> Sub<Saturating<u16>> for &'a Saturating<u16>
impl<'a> Sub<Saturating<u16>> for &'a Saturating<u16>
type Output = <Saturating<u16> as Sub<Saturating<u16>>>::Output
source§impl<'a> Sub<Saturating<u32>> for &'a Saturating<u32>
impl<'a> Sub<Saturating<u32>> for &'a Saturating<u32>
type Output = <Saturating<u32> as Sub<Saturating<u32>>>::Output
source§impl<'a> Sub<Saturating<u64>> for &'a Saturating<u64>
impl<'a> Sub<Saturating<u64>> for &'a Saturating<u64>
type Output = <Saturating<u64> as Sub<Saturating<u64>>>::Output
source§impl<'a> Sub<Saturating<u128>> for &'a Saturating<u128>
impl<'a> Sub<Saturating<u128>> for &'a Saturating<u128>
type Output = <Saturating<u128> as Sub<Saturating<u128>>>::Output
source§impl<'a> Sub<Saturating<usize>> for &'a Saturating<usize>
impl<'a> Sub<Saturating<usize>> for &'a Saturating<usize>
type Output = <Saturating<usize> as Sub<Saturating<usize>>>::Output
source§impl<'a, 'b, T> Sub<&'b DualQuaternion<T>> for &'a DualQuaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<'a, 'b, T> Sub<&'b DualQuaternion<T>> for &'a DualQuaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = DualQuaternion<T>
source§impl<'a, 'b, T> Sub<&'b Quaternion<T>> for &'a Quaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<'a, 'b, T> Sub<&'b Quaternion<T>> for &'a Quaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = Quaternion<T>
source§impl<'a, 'b, T, D1, D2, SB> Sub<&'b Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D1: DimName,
D2: Dim,
SB: Storage<T, D2, Const<1>>,
DefaultAllocator: Allocator<T, D1, Const<1>>,
impl<'a, 'b, T, D1, D2, SB> Sub<&'b Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2, Const<1>>, DefaultAllocator: Allocator<T, D1, Const<1>>,
source§impl<'a, 'b, T, D> Sub<&'b OPoint<T, D>> for &'a OPoint<T, D>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D: DimName,
DefaultAllocator: Allocator<T, D, Const<1>>,
impl<'a, 'b, T, D> Sub<&'b OPoint<T, D>> for &'a OPoint<T, D>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,
source§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
R1: Dim,
C1: Dim,
R2: Dim,
C2: Dim,
T: Scalar + ClosedSub<T>,
SA: Storage<T, R1, C1>,
SB: Storage<T, R2, C2>,
DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>,
ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,
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 R1: Dim, C1: Dim, R2: Dim, C2: Dim, T: Scalar + ClosedSub<T>, SA: Storage<T, R1, C1>, SB: Storage<T, R2, C2>, DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>, ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,
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>
source§impl<'a, A, B, S, S2, D, E> Sub<&'a ArrayBase<S2, E>> for &'a ArrayBase<S, D>where
A: Clone + Sub<B, Output = A>,
B: Clone,
S: Data<Elem = A>,
S2: Data<Elem = B>,
D: Dimension + DimMax<E>,
E: Dimension,
impl<'a, A, B, S, S2, D, E> Sub<&'a ArrayBase<S2, E>> for &'a ArrayBase<S, D>where A: Clone + Sub<B, Output = A>, B: Clone, S: Data<Elem = A>, S2: Data<Elem = B>, D: Dimension + DimMax<E>, E: Dimension,
Perform elementwise
subtraction
between references self
and rhs
,
and return the result as a new Array
.
If their shapes disagree, self
and rhs
is broadcast to their broadcast shape,
cloning the data if needed.
Panics if broadcasting isn’t possible.
source§impl<'a, A, B, S, S2, D, E> Sub<&'a ArrayBase<S2, E>> for ArrayBase<S, D>where
A: Clone + Sub<B, Output = A>,
B: Clone,
S: DataOwned<Elem = A> + DataMut,
S2: Data<Elem = B>,
D: Dimension + DimMax<E>,
E: Dimension,
impl<'a, A, B, S, S2, D, E> Sub<&'a ArrayBase<S2, E>> for ArrayBase<S, D>where A: Clone + Sub<B, Output = A>, B: Clone, S: DataOwned<Elem = A> + DataMut, S2: Data<Elem = B>, D: Dimension + DimMax<E>, E: Dimension,
Perform elementwise
subtraction
between self
and reference rhs
,
and return the result.
rhs
must be an Array
or ArcArray
.
If their shapes disagree, self
is broadcast to their broadcast shape,
cloning the data if needed.
Panics if broadcasting isn’t possible.
source§impl<'a, A, B, S, S2, D, E> Sub<ArrayBase<S2, E>> for &'a ArrayBase<S, D>where
A: Clone + Sub<B, Output = B>,
B: Clone,
S: Data<Elem = A>,
S2: DataOwned<Elem = B> + DataMut,
D: Dimension,
E: Dimension + DimMax<D>,
impl<'a, A, B, S, S2, D, E> Sub<ArrayBase<S2, E>> for &'a ArrayBase<S, D>where A: Clone + Sub<B, Output = B>, B: Clone, S: Data<Elem = A>, S2: DataOwned<Elem = B> + DataMut, D: Dimension, E: Dimension + DimMax<D>,
Perform elementwise
subtraction
between reference self
and rhs
,
and return the result.
rhs
must be an Array
or ArcArray
.
If their shapes disagree, self
is broadcast to their broadcast shape,
cloning the data if needed.
Panics if broadcasting isn’t possible.
source§impl<'a, A, S, D, B> Sub<B> for &'a ArrayBase<S, D>where
A: Clone + Sub<B, Output = A>,
S: Data<Elem = A>,
D: Dimension,
B: ScalarOperand,
impl<'a, A, S, D, B> Sub<B> for &'a ArrayBase<S, D>where A: Clone + Sub<B, Output = A>, S: Data<Elem = A>, D: Dimension, B: ScalarOperand,
Perform elementwise
subtraction
between the reference self
and the scalar x
,
and return the result as a new Array
.
source§impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f32>where
S: Data<Elem = Complex<f32>>,
D: Dimension,
impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f32>where S: Data<Elem = Complex<f32>>, D: Dimension,
source§impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f64>where
S: Data<Elem = Complex<f64>>,
D: Dimension,
impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f64>where S: Data<Elem = Complex<f64>>, D: Dimension,
source§impl<'a, T> Sub<DualQuaternion<T>> for &'a DualQuaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<'a, T> Sub<DualQuaternion<T>> for &'a DualQuaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = DualQuaternion<T>
source§impl<'a, T> Sub<Quaternion<T>> for &'a Quaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<'a, T> Sub<Quaternion<T>> for &'a Quaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = Quaternion<T>
source§impl<'a, T, D1, D2, SB> Sub<Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D1: DimName,
D2: Dim,
SB: Storage<T, D2, Const<1>>,
DefaultAllocator: Allocator<T, D1, Const<1>>,
impl<'a, T, D1, D2, SB> Sub<Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2, Const<1>>, DefaultAllocator: Allocator<T, D1, Const<1>>,
source§impl<'a, T, D> Sub<OPoint<T, D>> for &'a OPoint<T, D>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D: DimName,
DefaultAllocator: Allocator<T, D, Const<1>>,
impl<'a, T, D> Sub<OPoint<T, D>> for &'a OPoint<T, D>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,
source§impl<'a, T, R1, C1, R2, C2, SA, SB> Sub<Matrix<T, R2, C2, SB>> for &'a Matrix<T, R1, C1, SA>where
R1: Dim,
C1: Dim,
R2: Dim,
C2: Dim,
T: Scalar + ClosedSub<T>,
SA: Storage<T, R1, C1>,
SB: Storage<T, R2, C2>,
DefaultAllocator: SameShapeAllocator<T, R2, C2, R1, C1>,
ShapeConstraint: SameNumberOfRows<R2, R1> + SameNumberOfColumns<C2, C1>,
impl<'a, T, R1, C1, R2, C2, SA, SB> Sub<Matrix<T, R2, C2, SB>> for &'a Matrix<T, R1, C1, SA>where R1: Dim, C1: Dim, R2: Dim, C2: Dim, T: Scalar + ClosedSub<T>, SA: Storage<T, R1, C1>, SB: Storage<T, R2, C2>, DefaultAllocator: SameShapeAllocator<T, R2, C2, R1, C1>, ShapeConstraint: SameNumberOfRows<R2, R1> + SameNumberOfColumns<C2, C1>,
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>
source§impl<'b, T> Sub<&'b DualQuaternion<T>> for DualQuaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<'b, T> Sub<&'b DualQuaternion<T>> for DualQuaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = DualQuaternion<T>
source§impl<'b, T> Sub<&'b Quaternion<T>> for Quaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<'b, T> Sub<&'b Quaternion<T>> for Quaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = Quaternion<T>
source§impl<'b, T, D1, D2, SB> Sub<&'b Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D1: DimName,
D2: Dim,
SB: Storage<T, D2, Const<1>>,
DefaultAllocator: Allocator<T, D1, Const<1>>,
impl<'b, T, D1, D2, SB> Sub<&'b Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2, Const<1>>, DefaultAllocator: Allocator<T, D1, Const<1>>,
source§impl<'b, T, D> Sub<&'b OPoint<T, D>> for OPoint<T, D>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D: DimName,
DefaultAllocator: Allocator<T, D, Const<1>>,
impl<'b, T, D> Sub<&'b OPoint<T, D>> for OPoint<T, D>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,
source§impl<'b, T, R1, C1, R2, C2, SA, SB> Sub<&'b Matrix<T, R2, C2, SB>> for Matrix<T, R1, C1, SA>where
R1: Dim,
C1: Dim,
R2: Dim,
C2: Dim,
T: Scalar + ClosedSub<T>,
SA: Storage<T, R1, C1>,
SB: Storage<T, R2, C2>,
DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>,
ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,
impl<'b, T, R1, C1, R2, C2, SA, SB> Sub<&'b Matrix<T, R2, C2, SB>> for Matrix<T, R1, C1, SA>where R1: Dim, C1: Dim, R2: Dim, C2: Dim, T: Scalar + ClosedSub<T>, SA: Storage<T, R1, C1>, SB: Storage<T, R2, C2>, DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>, ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,
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>
source§impl<'lhs, 'rhs, T, const LANES: usize> Sub<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where
T: SimdElement,
Simd<T, LANES>: Sub<Simd<T, LANES>, Output = Simd<T, LANES>>,
LaneCount<LANES>: SupportedLaneCount,
impl<'lhs, 'rhs, T, const LANES: usize> Sub<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Sub<Simd<T, LANES>, Output = Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount,
source§impl<A, B, S, S2, D, E> Sub<ArrayBase<S2, E>> for ArrayBase<S, D>where
A: Clone + Sub<B, Output = A>,
B: Clone,
S: DataOwned<Elem = A> + DataMut,
S2: Data<Elem = B>,
D: Dimension + DimMax<E>,
E: Dimension,
impl<A, B, S, S2, D, E> Sub<ArrayBase<S2, E>> for ArrayBase<S, D>where A: Clone + Sub<B, Output = A>, B: Clone, S: DataOwned<Elem = A> + DataMut, S2: Data<Elem = B>, D: Dimension + DimMax<E>, E: Dimension,
Perform elementwise
subtraction
between self
and rhs
,
and return the result.
self
must be an Array
or ArcArray
.
If their shapes disagree, self
is broadcast to their broadcast shape.
Panics if broadcasting isn’t possible.
source§impl<A, S, D, B> Sub<B> for ArrayBase<S, D>where
A: Clone + Sub<B, Output = A>,
S: DataOwned<Elem = A> + DataMut,
D: Dimension,
B: ScalarOperand,
impl<A, S, D, B> Sub<B> for ArrayBase<S, D>where A: Clone + Sub<B, Output = A>, S: DataOwned<Elem = A> + DataMut, D: Dimension, B: ScalarOperand,
Perform elementwise
subtraction
between self
and the scalar x
,
and return the result (based on self
).
self
must be an Array
or ArcArray
.
source§impl<S, D> Sub<ArrayBase<S, D>> for f32where
S: DataOwned<Elem = f32> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for f32where S: DataOwned<Elem = f32> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for f64where
S: DataOwned<Elem = f64> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for f64where S: DataOwned<Elem = f64> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for i16where
S: DataOwned<Elem = i16> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for i16where S: DataOwned<Elem = i16> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for i32where
S: DataOwned<Elem = i32> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for i32where S: DataOwned<Elem = i32> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for i64where
S: DataOwned<Elem = i64> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for i64where S: DataOwned<Elem = i64> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for i128where
S: DataOwned<Elem = i128> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for i128where S: DataOwned<Elem = i128> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for isizewhere
S: DataOwned<Elem = isize> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for isizewhere S: DataOwned<Elem = isize> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for u16where
S: DataOwned<Elem = u16> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for u16where S: DataOwned<Elem = u16> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for u32where
S: DataOwned<Elem = u32> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for u32where S: DataOwned<Elem = u32> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for u64where
S: DataOwned<Elem = u64> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for u64where S: DataOwned<Elem = u64> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for u128where
S: DataOwned<Elem = u128> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for u128where S: DataOwned<Elem = u128> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for usizewhere
S: DataOwned<Elem = usize> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for usizewhere S: DataOwned<Elem = usize> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for Complex<f32>where
S: DataOwned<Elem = Complex<f32>> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for Complex<f32>where S: DataOwned<Elem = Complex<f32>> + DataMut, D: Dimension,
source§impl<S, D> Sub<ArrayBase<S, D>> for Complex<f64>where
S: DataOwned<Elem = Complex<f64>> + DataMut,
D: Dimension,
impl<S, D> Sub<ArrayBase<S, D>> for Complex<f64>where S: DataOwned<Elem = Complex<f64>> + DataMut, D: Dimension,
source§impl<T> Sub<DualQuaternion<T>> for DualQuaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> Sub<DualQuaternion<T>> for DualQuaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = DualQuaternion<T>
source§impl<T> Sub<Quaternion<T>> for Quaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> Sub<Quaternion<T>> for Quaternion<T>where T: SimdRealField, <T as SimdValue>::Element: SimdRealField,
type Output = Quaternion<T>
source§impl<T, A> Sub<&BTreeSet<T, A>> for &BTreeSet<T, A>where
T: Ord + Clone,
A: Allocator + Clone,
impl<T, A> Sub<&BTreeSet<T, A>> for &BTreeSet<T, A>where T: Ord + Clone, A: Allocator + Clone,
source§impl<T, D1, D2, SB> Sub<Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D1: DimName,
D2: Dim,
SB: Storage<T, D2, Const<1>>,
DefaultAllocator: Allocator<T, D1, Const<1>>,
impl<T, D1, D2, SB> Sub<Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2, Const<1>>, DefaultAllocator: Allocator<T, D1, Const<1>>,
source§impl<T, D> Sub<OPoint<T, D>> for OPoint<T, D>where
T: Scalar + ClosedSub<T>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,
D: DimName,
DefaultAllocator: Allocator<T, D, Const<1>>,
impl<T, D> Sub<OPoint<T, D>> for OPoint<T, D>where T: Scalar + ClosedSub<T>, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,
source§impl<T, R1, C1, R2, C2, SA, SB> Sub<Matrix<T, R2, C2, SB>> for Matrix<T, R1, C1, SA>where
R1: Dim,
C1: Dim,
R2: Dim,
C2: Dim,
T: Scalar + ClosedSub<T>,
SA: Storage<T, R1, C1>,
SB: Storage<T, R2, C2>,
DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>,
ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,
impl<T, R1, C1, R2, C2, SA, SB> Sub<Matrix<T, R2, C2, SB>> for Matrix<T, R1, C1, SA>where R1: Dim, C1: Dim, R2: Dim, C2: Dim, T: Scalar + ClosedSub<T>, SA: Storage<T, R1, C1>, SB: Storage<T, R2, C2>, DefaultAllocator: SameShapeAllocator<T, R1, C1, R2, C2>, ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,
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>
source§impl<T, S> Sub<&HashSet<T, S>> for &HashSet<T, S>where
T: Eq + Hash + Clone,
S: BuildHasher + Default,
impl<T, S> Sub<&HashSet<T, S>> for &HashSet<T, S>where T: Eq + Hash + Clone, S: BuildHasher + Default,
source§impl<T, const LANES: usize> Sub<&Simd<T, LANES>> for Simd<T, LANES>where
T: SimdElement,
Simd<T, LANES>: Sub<Simd<T, LANES>, Output = Simd<T, LANES>>,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Sub<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Sub<Simd<T, LANES>, Output = Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Sub<Simd<T, LANES>> for &Simd<T, LANES>where
T: SimdElement,
Simd<T, LANES>: Sub<Simd<T, LANES>, Output = Simd<T, LANES>>,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Sub<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Sub<Simd<T, LANES>, Output = Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount,
source§impl<U> Sub<B1> for UInt<U, B0>where
U: Unsigned + Sub<B1>,
<U as Sub<B1>>::Output: Unsigned,
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>
source§impl<U, B> Sub<B1> for UInt<UInt<U, B>, B1>where
U: Unsigned,
B: Bit,
impl<U, B> Sub<B1> for UInt<UInt<U, B>, B1>where U: Unsigned, B: Bit,
UInt<U, B1> - B1 = UInt<U, B0>
source§impl<Ul, Bl, Ur> Sub<Ur> for UInt<Ul, Bl>where
Ul: Unsigned,
Bl: Bit,
Ur: Unsigned,
UInt<Ul, Bl>: PrivateSub<Ur>,
<UInt<Ul, Bl> as PrivateSub<Ur>>::Output: Trim,
impl<Ul, Bl, Ur> Sub<Ur> for UInt<Ul, Bl>where Ul: Unsigned, Bl: Bit, Ur: Unsigned, 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.
source§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>,
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
source§impl<Ul, Ur> Sub<NInt<Ur>> for PInt<Ul>where
Ul: Unsigned + NonZero + Add<Ur>,
Ur: Unsigned + NonZero,
<Ul as Add<Ur>>::Output: Unsigned + NonZero,
impl<Ul, Ur> Sub<NInt<Ur>> for PInt<Ul>where Ul: Unsigned + NonZero + Add<Ur>, Ur: Unsigned + NonZero, <Ul as Add<Ur>>::Output: Unsigned + NonZero,
P(Ul) - N(Ur) = P(Ul + Ur)
source§impl<Ul, Ur> Sub<PInt<Ur>> for NInt<Ul>where
Ul: Unsigned + NonZero + Add<Ur>,
Ur: Unsigned + NonZero,
<Ul as Add<Ur>>::Output: Unsigned + NonZero,
impl<Ul, Ur> Sub<PInt<Ur>> for NInt<Ul>where Ul: Unsigned + NonZero + Add<Ur>, Ur: Unsigned + NonZero, <Ul as Add<Ur>>::Output: Unsigned + NonZero,
N(Ul) - P(Ur) = N(Ul + Ur)
source§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,
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