Trait Sub

1.0.0 (const: unstable) · Source
pub trait Sub<Rhs = Self> {
    type Output;

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

core The subtraction operator -.

Re-exported from core::ops:: .


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 });

Required Associated Types§

1.0.0 · Source

type Output

The resulting type after applying the - operator.

Required Methods§

1.0.0 · Source

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

Performs the - operation.

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

Implementors§

1.0.0 (const: unstable) · Source§

impl Sub for f16

1.0.0 (const: unstable) · Source§

impl Sub for f32

1.0.0 (const: unstable) · Source§

impl Sub for f64

1.0.0 (const: unstable) · Source§

impl Sub for f128

1.0.0 (const: unstable) · Source§

impl Sub for i8

1.0.0 (const: unstable) · Source§

impl Sub for i16

1.0.0 (const: unstable) · Source§

impl Sub for i32

1.0.0 (const: unstable) · Source§

impl Sub for i64

1.0.0 (const: unstable) · Source§

impl Sub for i128

1.0.0 (const: unstable) · Source§

impl Sub for isize

1.0.0 (const: unstable) · Source§

impl Sub for u8

1.0.0 (const: unstable) · Source§

impl Sub for u16

1.0.0 (const: unstable) · Source§

impl Sub for u32

1.0.0 (const: unstable) · Source§

impl Sub for u64

1.0.0 (const: unstable) · Source§

impl Sub for u128

1.0.0 (const: unstable) · Source§

impl Sub for usize

Source§

impl Sub for Assume

§

impl Sub for KeyEventState

§

impl Sub for KeyModifiers

§

impl Sub for KeyboardEnhancementFlags

§

impl Sub for devela::_dep::ffmpeg_the_third::codec::decoder::slice::Flags

§

impl Sub for Check

§

impl Sub for Conceal

§

impl Sub for devela::_dep::ffmpeg_the_third::codec::packet::Flags

§

impl Sub for Capabilities

§

impl Sub for CodecProperties

§

impl Sub for Debug

§

impl Sub for devela::_dep::ffmpeg_the_third::codec::Flags

§

impl Sub for devela::_dep::ffmpeg_the_third::codec::subtitle::Flags

§

impl Sub for devela::_dep::ffmpeg_the_third::filter::Flags

§

impl Sub for Disposition

§

impl Sub for devela::_dep::ffmpeg_the_third::format::Flags

§

impl Sub for devela::_dep::ffmpeg_the_third::software::resampling::Flags

§

impl Sub for devela::_dep::ffmpeg_the_third::software::scaling::Flags

§

impl Sub for ChannelLayoutMask

§

impl Sub for Rational

§

impl Sub for devela::_dep::ffmpeg_the_third::util::frame::Flags

§

impl Sub for devela::_dep::ffmpeg_the_third::util::log::Flags

§

impl Sub for Type

§

type Output = Type

§

impl Sub for Ticks

§

impl Sub for Date

Computes the span of time between two dates.

This will return a negative span when the date being subtracted is greater.

Since this uses the default configuration for calculating a span between two date (no rounding and largest units is days), this will never panic or fail in any way.

To configure the largest unit or enable rounding, use Date::since.

§

type Output = Span

§

impl Sub for DateTime

Computes the span of time between two datetimes.

This will return a negative span when the datetime being subtracted is greater.

Since this uses the default configuration for calculating a span between two datetimes (no rounding and largest units is days), this will never panic or fail in any way. It is guaranteed that the largest non-zero unit in the Span returned will be days.

To configure the largest unit or enable rounding, use DateTime::since.

If you need a SignedDuration representing the span between two civil datetimes, then use DateTime::duration_since.

§

type Output = Span

§

impl Sub for Time

Computes the span of time between two times.

This will return a negative span when the time being subtracted is greater.

Since this uses the default configuration for calculating a span between two times (no rounding and largest units is hours), this will never panic or fail in any way.

To configure the largest unit or enable rounding, use Time::since.

§

type Output = Span

§

impl Sub for SignedDuration

§

impl Sub for Timestamp

Computes the span of time between two timestamps.

This will return a negative span when the timestamp being subtracted is greater.

Since this uses the default configuration for calculating a span between two timestamps (no rounding and largest units is seconds), this will never panic or fail in any way.

To configure the largest unit or enable rounding, use Timestamp::since.

§

type Output = Span

§

impl Sub for Offset

Computes the span of time between two offsets.

This will return a negative span when the offset being subtracted is greater (i.e., more east with respect to the prime meridian).

§

type Output = Span

§

impl Sub for Decibels

§

impl Sub for Frame

§

impl Sub for Mix

§

type Output = Mix

§

impl Sub for Panning

§

impl Sub for PlaybackRate

§

impl Sub for Semitones

§

impl Sub for devela::_dep::sdl2::image::InitFlag

§

impl Sub for Mod

§

type Output = Mod

§

impl Sub for MessageBoxButtonFlag

§

impl Sub for MessageBoxFlag

§

impl Sub for AllowChangeFlag

§

impl Sub for devela::_dep::sdl2::mixer::InitFlag

§

impl Sub for FPoint

§

impl Sub for Point

§

impl Sub for FontStyle

§

impl Sub for Channels

§

impl Sub for Complex

§

impl Sub for i24

§

type Output = i24

§

impl Sub for u24

§

type Output = u24

§

impl Sub for f32x4

§

impl Sub for f32x8

§

impl Sub for f64x2

§

impl Sub for f64x4

§

impl Sub for i8x16

§

impl Sub for i8x32

§

impl Sub for i16x8

§

impl Sub for i16x16

§

impl Sub for i32x4

§

impl Sub for i32x8

§

impl Sub for i64x2

§

impl Sub for i64x4

§

impl Sub for u8x16

§

impl Sub for u8x32

§

impl Sub for u16x8

§

impl Sub for u16x16

§

impl Sub for u32x4

§

impl Sub for u32x8

§

impl Sub for u64x2

§

impl Sub for u64x4

Source§

impl Sub for Float<f64>

Available on crate feature _float_f64 only.
Source§

impl Sub for Int<i64>

Available on crate feature _int_i64 only.
Source§

impl Sub for Int<u32>

Available on crate feature _int_u32 only.
Source§

impl Sub for Mat3

Source§

impl Sub for Mat2

Source§

impl Sub for Mat3A

Source§

impl Sub for Mat4

Source§

impl Sub for Quat

Source§

impl Sub for Vec3A

Source§

impl Sub for Vec4

Source§

impl Sub for Vec2

Source§

impl Sub for Vec3

Source§

impl Sub for DMat2

Source§

impl Sub for DMat3

Source§

impl Sub for DMat4

Source§

impl Sub for DQuat

Source§

impl Sub for DVec2

Source§

impl Sub for DVec3

Source§

impl Sub for DVec4

Source§

impl Sub for I8Vec2

Source§

impl Sub for I8Vec3

Source§

impl Sub for I8Vec4

Source§

impl Sub for I16Vec2

Source§

impl Sub for I16Vec3

Source§

impl Sub for I16Vec4

Source§

impl Sub for IVec2

Source§

impl Sub for IVec3

Source§

impl Sub for IVec4

Source§

impl Sub for I64Vec2

Source§

impl Sub for I64Vec3

Source§

impl Sub for I64Vec4

Source§

impl Sub for U8Vec2

Source§

impl Sub for U8Vec3

Source§

impl Sub for U8Vec4

Source§

impl Sub for U16Vec2

Source§

impl Sub for U16Vec3

Source§

impl Sub for U16Vec4

Source§

impl Sub for UVec2

Source§

impl Sub for UVec3

Source§

impl Sub for UVec4

Source§

impl Sub for U64Vec2

Source§

impl Sub for U64Vec3

Source§

impl Sub for U64Vec4

Source§

impl Sub for USizeVec2

Source§

impl Sub for USizeVec3

Source§

impl Sub for USizeVec4

Source§

impl Sub for BigInt

Source§

impl Sub for BigUint

1.3.0 · Source§

impl Sub for Duration

1.74.0 · Source§

impl Sub for Saturating<i8>

1.74.0 · Source§

impl Sub for Saturating<i16>

1.74.0 · Source§

impl Sub for Saturating<i32>

1.74.0 · Source§

impl Sub for Saturating<i64>

1.74.0 · Source§

impl Sub for Saturating<i128>

1.74.0 · Source§

impl Sub for Saturating<isize>

1.74.0 · Source§

impl Sub for Saturating<u8>

1.74.0 · Source§

impl Sub for Saturating<u16>

1.74.0 · Source§

impl Sub for Saturating<u32>

1.74.0 · Source§

impl Sub for Saturating<u64>

1.74.0 · Source§

impl Sub for Saturating<u128>

1.74.0 · Source§

impl Sub for Saturating<usize>

1.8.0 · Source§

impl Sub for Instant

Source§

impl Sub for TimeDelta

1.0.0 · Source§

impl Sub for Wrapping<i8>

1.0.0 · Source§

impl Sub for Wrapping<i16>

1.0.0 · Source§

impl Sub for Wrapping<i32>

1.0.0 · Source§

impl Sub for Wrapping<i64>

1.0.0 · Source§

impl Sub for Wrapping<i128>

1.0.0 · Source§

impl Sub for Wrapping<isize>

1.0.0 · Source§

impl Sub for Wrapping<u8>

1.0.0 · Source§

impl Sub for Wrapping<u16>

1.0.0 · Source§

impl Sub for Wrapping<u32>

1.0.0 · Source§

impl Sub for Wrapping<u64>

1.0.0 · Source§

impl Sub for Wrapping<u128>

1.0.0 · Source§

impl Sub for Wrapping<usize>

§

impl Sub for m128

§

type Output = m128

§

impl Sub for m128d

§

impl Sub for m256

§

type Output = m256

§

impl Sub for m256d

§

impl Sub for ControlModes

§

type Output = ControlModes

§

impl Sub for DupFlags

§

type Output = DupFlags

§

impl Sub for EfdFlags

§

type Output = EfdFlags

§

impl Sub for EpollCreateFlags

§

type Output = EpollCreateFlags

§

impl Sub for EpollFlags

§

type Output = EpollFlags

§

impl Sub for EventMask

§

type Output = EventMask

§

impl Sub for FdFlags

§

type Output = FdFlags

§

impl Sub for Flags

§

type Output = Flags

§

impl Sub for I11

§

type Output = I11

§

impl Sub for I20

§

type Output = I20

§

impl Sub for I24

§

type Output = I24

§

impl Sub for I48

§

type Output = I48

§

impl Sub for InputModes

§

type Output = InputModes

§

impl Sub for LocalModes

§

type Output = LocalModes

§

impl Sub for MilliBel

§

type Output = MilliBel

§

impl Sub for OutputModes

§

type Output = OutputModes

§

impl Sub for PortCap

§

type Output = PortCap

§

impl Sub for PortType

§

type Output = PortType

§

impl Sub for ReadWriteFlags

§

type Output = ReadWriteFlags

§

impl Sub for Remove

§

type Output = Remove

§

impl Sub for TimeSpec

§

type Output = TimeSpec

§

impl Sub for TimeVal

§

type Output = TimeVal

§

impl Sub for Transformations

§

type Output = Transformations

§

impl Sub for U11

§

type Output = U11

§

impl Sub for U20

§

type Output = U20

§

impl Sub for U24

§

type Output = U24

§

impl Sub for U48

§

type Output = U48

§

impl Sub for WatchMask

§

type Output = WatchMask

1.0.0 · Source§

impl Sub<&f16> for &f16

1.0.0 · Source§

impl Sub<&f16> for f16

1.0.0 · Source§

impl Sub<&f32> for &f32

Source§

impl Sub<&f32> for &Vec3A

Source§

impl Sub<&f32> for &Vec4

Source§

impl Sub<&f32> for &Vec2

Source§

impl Sub<&f32> for &Vec3

1.0.0 · Source§

impl Sub<&f32> for f32

Source§

impl Sub<&f32> for Vec3A

Source§

impl Sub<&f32> for Vec4

Source§

impl Sub<&f32> for Vec2

Source§

impl Sub<&f32> for Vec3

1.0.0 · Source§

impl Sub<&f64> for &f64

Source§

impl Sub<&f64> for &DVec2

Source§

impl Sub<&f64> for &DVec3

Source§

impl Sub<&f64> for &DVec4

1.0.0 · Source§

impl Sub<&f64> for f64

Source§

impl Sub<&f64> for DVec2

Source§

impl Sub<&f64> for DVec3

Source§

impl Sub<&f64> for DVec4

1.0.0 · Source§

impl Sub<&f128> for &f128

1.0.0 · Source§

impl Sub<&f128> for f128

1.0.0 · Source§

impl Sub<&i8> for &i8

Source§

impl Sub<&i8> for &I8Vec2

Source§

impl Sub<&i8> for &I8Vec3

Source§

impl Sub<&i8> for &I8Vec4

Source§

impl Sub<&i8> for &BigInt

1.0.0 · Source§

impl Sub<&i8> for i8

Source§

impl Sub<&i8> for I8Vec2

Source§

impl Sub<&i8> for I8Vec3

Source§

impl Sub<&i8> for I8Vec4

Source§

impl Sub<&i8> for BigInt

1.0.0 · Source§

impl Sub<&i16> for &i16

Source§

impl Sub<&i16> for &I16Vec2

Source§

impl Sub<&i16> for &I16Vec3

Source§

impl Sub<&i16> for &I16Vec4

Source§

impl Sub<&i16> for &BigInt

1.0.0 · Source§

impl Sub<&i16> for i16

Source§

impl Sub<&i16> for I16Vec2

Source§

impl Sub<&i16> for I16Vec3

Source§

impl Sub<&i16> for I16Vec4

Source§

impl Sub<&i16> for BigInt

1.0.0 · Source§

impl Sub<&i32> for &i32

Source§

impl Sub<&i32> for &IVec2

Source§

impl Sub<&i32> for &IVec3

Source§

impl Sub<&i32> for &IVec4

Source§

impl Sub<&i32> for &BigInt

1.0.0 · Source§

impl Sub<&i32> for i32

Source§

impl Sub<&i32> for IVec2

Source§

impl Sub<&i32> for IVec3

Source§

impl Sub<&i32> for IVec4

Source§

impl Sub<&i32> for BigInt

1.0.0 · Source§

impl Sub<&i64> for &i64

Source§

impl Sub<&i64> for &I64Vec2

Source§

impl Sub<&i64> for &I64Vec3

Source§

impl Sub<&i64> for &I64Vec4

Source§

impl Sub<&i64> for &BigInt

1.0.0 · Source§

impl Sub<&i64> for i64

Source§

impl Sub<&i64> for I64Vec2

Source§

impl Sub<&i64> for I64Vec3

Source§

impl Sub<&i64> for I64Vec4

Source§

impl Sub<&i64> for BigInt

1.0.0 · Source§

impl Sub<&i128> for &i128

Source§

impl Sub<&i128> for &BigInt

1.0.0 · Source§

impl Sub<&i128> for i128

Source§

impl Sub<&i128> for BigInt

1.0.0 · Source§

impl Sub<&isize> for &isize

Source§

impl Sub<&isize> for &BigInt

1.0.0 · Source§

impl Sub<&isize> for isize

Source§

impl Sub<&isize> for BigInt

1.0.0 · Source§

impl Sub<&u8> for &u8

Source§

impl Sub<&u8> for &U8Vec2

Source§

impl Sub<&u8> for &U8Vec3

Source§

impl Sub<&u8> for &U8Vec4

Source§

impl Sub<&u8> for &BigInt

Source§

impl Sub<&u8> for &BigUint

1.0.0 · Source§

impl Sub<&u8> for u8

Source§

impl Sub<&u8> for U8Vec2

Source§

impl Sub<&u8> for U8Vec3

Source§

impl Sub<&u8> for U8Vec4

Source§

impl Sub<&u8> for BigInt

Source§

impl Sub<&u8> for BigUint

1.0.0 · Source§

impl Sub<&u16> for &u16

Source§

impl Sub<&u16> for &U16Vec2

Source§

impl Sub<&u16> for &U16Vec3

Source§

impl Sub<&u16> for &U16Vec4

Source§

impl Sub<&u16> for &BigInt

Source§

impl Sub<&u16> for &BigUint

1.0.0 · Source§

impl Sub<&u16> for u16

Source§

impl Sub<&u16> for U16Vec2

Source§

impl Sub<&u16> for U16Vec3

Source§

impl Sub<&u16> for U16Vec4

Source§

impl Sub<&u16> for BigInt

Source§

impl Sub<&u16> for BigUint

1.0.0 · Source§

impl Sub<&u32> for &u32

Source§

impl Sub<&u32> for &UVec2

Source§

impl Sub<&u32> for &UVec3

Source§

impl Sub<&u32> for &UVec4

Source§

impl Sub<&u32> for &BigInt

Source§

impl Sub<&u32> for &BigUint

1.0.0 · Source§

impl Sub<&u32> for u32

Source§

impl Sub<&u32> for UVec2

Source§

impl Sub<&u32> for UVec3

Source§

impl Sub<&u32> for UVec4

Source§

impl Sub<&u32> for BigInt

Source§

impl Sub<&u32> for BigUint

1.0.0 · Source§

impl Sub<&u64> for &u64

Source§

impl Sub<&u64> for &U64Vec2

Source§

impl Sub<&u64> for &U64Vec3

Source§

impl Sub<&u64> for &U64Vec4

Source§

impl Sub<&u64> for &BigInt

Source§

impl Sub<&u64> for &BigUint

1.0.0 · Source§

impl Sub<&u64> for u64

Source§

impl Sub<&u64> for U64Vec2

Source§

impl Sub<&u64> for U64Vec3

Source§

impl Sub<&u64> for U64Vec4

Source§

impl Sub<&u64> for BigInt

Source§

impl Sub<&u64> for BigUint

1.0.0 · Source§

impl Sub<&u128> for &u128

Source§

impl Sub<&u128> for &BigInt

Source§

impl Sub<&u128> for &BigUint

1.0.0 · Source§

impl Sub<&u128> for u128

Source§

impl Sub<&u128> for BigInt

Source§

impl Sub<&u128> for BigUint

1.0.0 · Source§

impl Sub<&usize> for &usize

Source§

impl Sub<&usize> for &USizeVec2

Source§

impl Sub<&usize> for &USizeVec3

Source§

impl Sub<&usize> for &USizeVec4

Source§

impl Sub<&usize> for &BigInt

Source§

impl Sub<&usize> for &BigUint

1.0.0 · Source§

impl Sub<&usize> for usize

Source§

impl Sub<&usize> for USizeVec2

Source§

impl Sub<&usize> for USizeVec3

Source§

impl Sub<&usize> for USizeVec4

Source§

impl Sub<&usize> for BigInt

Source§

impl Sub<&usize> for BigUint

§

impl Sub<&f32x4> for f32x4

§

impl Sub<&f32x8> for f32x8

§

impl Sub<&f64x2> for f64x2

§

impl Sub<&f64x4> for f64x4

§

impl Sub<&i8x16> for i8x16

§

impl Sub<&i8x32> for i8x32

§

impl Sub<&i16x8> for i16x8

§

impl Sub<&i16x16> for i16x16

§

impl Sub<&i32x4> for i32x4

§

impl Sub<&i32x8> for i32x8

§

impl Sub<&i64x2> for i64x2

§

impl Sub<&u8x16> for u8x16

§

impl Sub<&u8x32> for u8x32

§

impl Sub<&u16x8> for u16x8

§

impl Sub<&u16x16> for u16x16

§

impl Sub<&u32x4> for u32x4

§

impl Sub<&u32x8> for u32x8

§

impl Sub<&u64x2> for u64x2

§

impl Sub<&u64x4> for u64x4

Source§

impl Sub<&Mat3> for &Mat3

Source§

impl Sub<&Mat3> for Mat3

Source§

impl Sub<&Mat2> for &Mat2

Source§

impl Sub<&Mat2> for Mat2

Source§

impl Sub<&Mat3A> for &Mat3A

Source§

impl Sub<&Mat3A> for Mat3A

Source§

impl Sub<&Mat4> for &Mat4

Source§

impl Sub<&Mat4> for Mat4

Source§

impl Sub<&Quat> for &Quat

Source§

impl Sub<&Quat> for Quat

Source§

impl Sub<&Vec3A> for &f32

Source§

impl Sub<&Vec3A> for &Vec3A

Source§

impl Sub<&Vec3A> for f32

Source§

impl Sub<&Vec3A> for Vec3A

Source§

impl Sub<&Vec4> for &f32

Source§

impl Sub<&Vec4> for &Vec4

Source§

impl Sub<&Vec4> for f32

Source§

impl Sub<&Vec4> for Vec4

Source§

impl Sub<&Vec2> for &f32

Source§

impl Sub<&Vec2> for &Vec2

Source§

impl Sub<&Vec2> for f32

Source§

impl Sub<&Vec2> for Vec2

Source§

impl Sub<&Vec3> for &f32

Source§

impl Sub<&Vec3> for &Vec3

Source§

impl Sub<&Vec3> for f32

Source§

impl Sub<&Vec3> for Vec3

Source§

impl Sub<&DMat2> for &DMat2

Source§

impl Sub<&DMat2> for DMat2

Source§

impl Sub<&DMat3> for &DMat3

Source§

impl Sub<&DMat3> for DMat3

Source§

impl Sub<&DMat4> for &DMat4

Source§

impl Sub<&DMat4> for DMat4

Source§

impl Sub<&DQuat> for &DQuat

Source§

impl Sub<&DQuat> for DQuat

Source§

impl Sub<&DVec2> for &f64

Source§

impl Sub<&DVec2> for &DVec2

Source§

impl Sub<&DVec2> for f64

Source§

impl Sub<&DVec2> for DVec2

Source§

impl Sub<&DVec3> for &f64

Source§

impl Sub<&DVec3> for &DVec3

Source§

impl Sub<&DVec3> for f64

Source§

impl Sub<&DVec3> for DVec3

Source§

impl Sub<&DVec4> for &f64

Source§

impl Sub<&DVec4> for &DVec4

Source§

impl Sub<&DVec4> for f64

Source§

impl Sub<&DVec4> for DVec4

Source§

impl Sub<&I8Vec2> for &i8

Source§

impl Sub<&I8Vec2> for &I8Vec2

Source§

impl Sub<&I8Vec2> for i8

Source§

impl Sub<&I8Vec2> for I8Vec2

Source§

impl Sub<&I8Vec3> for &i8

Source§

impl Sub<&I8Vec3> for &I8Vec3

Source§

impl Sub<&I8Vec3> for i8

Source§

impl Sub<&I8Vec3> for I8Vec3

Source§

impl Sub<&I8Vec4> for &i8

Source§

impl Sub<&I8Vec4> for &I8Vec4

Source§

impl Sub<&I8Vec4> for i8

Source§

impl Sub<&I8Vec4> for I8Vec4

Source§

impl Sub<&I16Vec2> for &i16

Source§

impl Sub<&I16Vec2> for &I16Vec2

Source§

impl Sub<&I16Vec2> for i16

Source§

impl Sub<&I16Vec2> for I16Vec2

Source§

impl Sub<&I16Vec3> for &i16

Source§

impl Sub<&I16Vec3> for &I16Vec3

Source§

impl Sub<&I16Vec3> for i16

Source§

impl Sub<&I16Vec3> for I16Vec3

Source§

impl Sub<&I16Vec4> for &i16

Source§

impl Sub<&I16Vec4> for &I16Vec4

Source§

impl Sub<&I16Vec4> for i16

Source§

impl Sub<&I16Vec4> for I16Vec4

Source§

impl Sub<&IVec2> for &i32

Source§

impl Sub<&IVec2> for &IVec2

Source§

impl Sub<&IVec2> for i32

Source§

impl Sub<&IVec2> for IVec2

Source§

impl Sub<&IVec3> for &i32

Source§

impl Sub<&IVec3> for &IVec3

Source§

impl Sub<&IVec3> for i32

Source§

impl Sub<&IVec3> for IVec3

Source§

impl Sub<&IVec4> for &i32

Source§

impl Sub<&IVec4> for &IVec4

Source§

impl Sub<&IVec4> for i32

Source§

impl Sub<&IVec4> for IVec4

Source§

impl Sub<&I64Vec2> for &i64

Source§

impl Sub<&I64Vec2> for &I64Vec2

Source§

impl Sub<&I64Vec2> for i64

Source§

impl Sub<&I64Vec2> for I64Vec2

Source§

impl Sub<&I64Vec3> for &i64

Source§

impl Sub<&I64Vec3> for &I64Vec3

Source§

impl Sub<&I64Vec3> for i64

Source§

impl Sub<&I64Vec3> for I64Vec3

Source§

impl Sub<&I64Vec4> for &i64

Source§

impl Sub<&I64Vec4> for &I64Vec4

Source§

impl Sub<&I64Vec4> for i64

Source§

impl Sub<&I64Vec4> for I64Vec4

Source§

impl Sub<&U8Vec2> for &u8

Source§

impl Sub<&U8Vec2> for &U8Vec2

Source§

impl Sub<&U8Vec2> for u8

Source§

impl Sub<&U8Vec2> for U8Vec2

Source§

impl Sub<&U8Vec3> for &u8

Source§

impl Sub<&U8Vec3> for &U8Vec3

Source§

impl Sub<&U8Vec3> for u8

Source§

impl Sub<&U8Vec3> for U8Vec3

Source§

impl Sub<&U8Vec4> for &u8

Source§

impl Sub<&U8Vec4> for &U8Vec4

Source§

impl Sub<&U8Vec4> for u8

Source§

impl Sub<&U8Vec4> for U8Vec4

Source§

impl Sub<&U16Vec2> for &u16

Source§

impl Sub<&U16Vec2> for &U16Vec2

Source§

impl Sub<&U16Vec2> for u16

Source§

impl Sub<&U16Vec2> for U16Vec2

Source§

impl Sub<&U16Vec3> for &u16

Source§

impl Sub<&U16Vec3> for &U16Vec3

Source§

impl Sub<&U16Vec3> for u16

Source§

impl Sub<&U16Vec3> for U16Vec3

Source§

impl Sub<&U16Vec4> for &u16

Source§

impl Sub<&U16Vec4> for &U16Vec4

Source§

impl Sub<&U16Vec4> for u16

Source§

impl Sub<&U16Vec4> for U16Vec4

Source§

impl Sub<&UVec2> for &u32

Source§

impl Sub<&UVec2> for &UVec2

Source§

impl Sub<&UVec2> for u32

Source§

impl Sub<&UVec2> for UVec2

Source§

impl Sub<&UVec3> for &u32

Source§

impl Sub<&UVec3> for &UVec3

Source§

impl Sub<&UVec3> for u32

Source§

impl Sub<&UVec3> for UVec3

Source§

impl Sub<&UVec4> for &u32

Source§

impl Sub<&UVec4> for &UVec4

Source§

impl Sub<&UVec4> for u32

Source§

impl Sub<&UVec4> for UVec4

Source§

impl Sub<&U64Vec2> for &u64

Source§

impl Sub<&U64Vec2> for &U64Vec2

Source§

impl Sub<&U64Vec2> for u64

Source§

impl Sub<&U64Vec2> for U64Vec2

Source§

impl Sub<&U64Vec3> for &u64

Source§

impl Sub<&U64Vec3> for &U64Vec3

Source§

impl Sub<&U64Vec3> for u64

Source§

impl Sub<&U64Vec3> for U64Vec3

Source§

impl Sub<&U64Vec4> for &u64

Source§

impl Sub<&U64Vec4> for &U64Vec4

Source§

impl Sub<&U64Vec4> for u64

Source§

impl Sub<&U64Vec4> for U64Vec4

Source§

impl Sub<&USizeVec2> for &usize

Source§

impl Sub<&USizeVec2> for &USizeVec2

Source§

impl Sub<&USizeVec2> for usize

Source§

impl Sub<&USizeVec2> for USizeVec2

Source§

impl Sub<&USizeVec3> for &usize

Source§

impl Sub<&USizeVec3> for &USizeVec3

Source§

impl Sub<&USizeVec3> for usize

Source§

impl Sub<&USizeVec3> for USizeVec3

Source§

impl Sub<&USizeVec4> for &usize

Source§

impl Sub<&USizeVec4> for &USizeVec4

Source§

impl Sub<&USizeVec4> for usize

Source§

impl Sub<&USizeVec4> for USizeVec4

Source§

impl Sub<&BigInt> for &i8

Source§

impl Sub<&BigInt> for &i16

Source§

impl Sub<&BigInt> for &i32

Source§

impl Sub<&BigInt> for &i64

Source§

impl Sub<&BigInt> for &i128

Source§

impl Sub<&BigInt> for &isize

Source§

impl Sub<&BigInt> for &u8

Source§

impl Sub<&BigInt> for &u16

Source§

impl Sub<&BigInt> for &u32

Source§

impl Sub<&BigInt> for &u64

Source§

impl Sub<&BigInt> for &u128

Source§

impl Sub<&BigInt> for &usize

Source§

impl Sub<&BigInt> for &BigInt

Source§

impl Sub<&BigInt> for i8

Source§

impl Sub<&BigInt> for i16

Source§

impl Sub<&BigInt> for i32

Source§

impl Sub<&BigInt> for i64

Source§

impl Sub<&BigInt> for i128

Source§

impl Sub<&BigInt> for isize

Source§

impl Sub<&BigInt> for u8

Source§

impl Sub<&BigInt> for u16

Source§

impl Sub<&BigInt> for u32

Source§

impl Sub<&BigInt> for u64

Source§

impl Sub<&BigInt> for u128

Source§

impl Sub<&BigInt> for usize

Source§

impl Sub<&BigInt> for BigInt

Source§

impl Sub<&BigUint> for &u8

Source§

impl Sub<&BigUint> for &u16

Source§

impl Sub<&BigUint> for &u32

Source§

impl Sub<&BigUint> for &u64

Source§

impl Sub<&BigUint> for &u128

Source§

impl Sub<&BigUint> for &usize

Source§

impl Sub<&BigUint> for &BigUint

Source§

impl Sub<&BigUint> for u8

Source§

impl Sub<&BigUint> for u16

Source§

impl Sub<&BigUint> for u32

Source§

impl Sub<&BigUint> for u64

Source§

impl Sub<&BigUint> for u128

Source§

impl Sub<&BigUint> for usize

Source§

impl Sub<&BigUint> for BigUint

1.74.0 · Source§

impl Sub<&Saturating<i8>> for &Saturating<i8>

1.74.0 · Source§

impl Sub<&Saturating<i8>> for Saturating<i8>

1.74.0 · Source§

impl Sub<&Saturating<i16>> for &Saturating<i16>

1.74.0 · Source§

impl Sub<&Saturating<i16>> for Saturating<i16>

1.74.0 · Source§

impl Sub<&Saturating<i32>> for &Saturating<i32>

1.74.0 · Source§

impl Sub<&Saturating<i32>> for Saturating<i32>

1.74.0 · Source§

impl Sub<&Saturating<i64>> for &Saturating<i64>

1.74.0 · Source§

impl Sub<&Saturating<i64>> for Saturating<i64>

1.74.0 · Source§

impl Sub<&Saturating<i128>> for &Saturating<i128>

1.74.0 · Source§

impl Sub<&Saturating<i128>> for Saturating<i128>

1.74.0 · Source§

impl Sub<&Saturating<isize>> for &Saturating<isize>

1.74.0 · Source§

impl Sub<&Saturating<isize>> for Saturating<isize>

1.74.0 · Source§

impl Sub<&Saturating<u8>> for &Saturating<u8>

1.74.0 · Source§

impl Sub<&Saturating<u8>> for Saturating<u8>

1.74.0 · Source§

impl Sub<&Saturating<u16>> for &Saturating<u16>

1.74.0 · Source§

impl Sub<&Saturating<u16>> for Saturating<u16>

1.74.0 · Source§

impl Sub<&Saturating<u32>> for &Saturating<u32>

1.74.0 · Source§

impl Sub<&Saturating<u32>> for Saturating<u32>

1.74.0 · Source§

impl Sub<&Saturating<u64>> for &Saturating<u64>

1.74.0 · Source§

impl Sub<&Saturating<u64>> for Saturating<u64>

1.74.0 · Source§

impl Sub<&Saturating<u128>> for &Saturating<u128>

1.74.0 · Source§

impl Sub<&Saturating<u128>> for Saturating<u128>

1.74.0 · Source§

impl Sub<&Saturating<usize>> for &Saturating<usize>

1.74.0 · Source§

impl Sub<&Saturating<usize>> for Saturating<usize>

1.14.0 · Source§

impl Sub<&Wrapping<i8>> for &Wrapping<i8>

1.14.0 · Source§

impl Sub<&Wrapping<i8>> for Wrapping<i8>

1.14.0 · Source§

impl Sub<&Wrapping<i16>> for &Wrapping<i16>

1.14.0 · Source§

impl Sub<&Wrapping<i16>> for Wrapping<i16>

1.14.0 · Source§

impl Sub<&Wrapping<i32>> for &Wrapping<i32>

1.14.0 · Source§

impl Sub<&Wrapping<i32>> for Wrapping<i32>

1.14.0 · Source§

impl Sub<&Wrapping<i64>> for &Wrapping<i64>

1.14.0 · Source§

impl Sub<&Wrapping<i64>> for Wrapping<i64>

1.14.0 · Source§

impl Sub<&Wrapping<i128>> for &Wrapping<i128>

1.14.0 · Source§

impl Sub<&Wrapping<i128>> for Wrapping<i128>

1.14.0 · Source§

impl Sub<&Wrapping<isize>> for &Wrapping<isize>

1.14.0 · Source§

impl Sub<&Wrapping<isize>> for Wrapping<isize>

1.14.0 · Source§

impl Sub<&Wrapping<u8>> for &Wrapping<u8>

1.14.0 · Source§

impl Sub<&Wrapping<u8>> for Wrapping<u8>

1.14.0 · Source§

impl Sub<&Wrapping<u16>> for &Wrapping<u16>

1.14.0 · Source§

impl Sub<&Wrapping<u16>> for Wrapping<u16>

1.14.0 · Source§

impl Sub<&Wrapping<u32>> for &Wrapping<u32>

1.14.0 · Source§

impl Sub<&Wrapping<u32>> for Wrapping<u32>

1.14.0 · Source§

impl Sub<&Wrapping<u64>> for &Wrapping<u64>

1.14.0 · Source§

impl Sub<&Wrapping<u64>> for Wrapping<u64>

1.14.0 · Source§

impl Sub<&Wrapping<u128>> for &Wrapping<u128>

1.14.0 · Source§

impl Sub<&Wrapping<u128>> for Wrapping<u128>

1.14.0 · Source§

impl Sub<&Wrapping<usize>> for &Wrapping<usize>

1.14.0 · Source§

impl Sub<&Wrapping<usize>> for Wrapping<usize>

Source§

impl Sub<f32> for &Vec3A

Source§

impl Sub<f32> for &Vec4

Source§

impl Sub<f32> for &Vec2

Source§

impl Sub<f32> for &Vec3

§

impl Sub<f32> for f32x4

§

impl Sub<f32> for f32x8

Source§

impl Sub<f32> for Vec3A

Source§

impl Sub<f32> for Vec4

Source§

impl Sub<f32> for Vec2

Source§

impl Sub<f32> for Vec3

Source§

impl Sub<f64> for &DVec2

Source§

impl Sub<f64> for &DVec3

Source§

impl Sub<f64> for &DVec4

§

impl Sub<f64> for ClockTime

§

impl Sub<f64> for f64x2

§

impl Sub<f64> for f64x4

Source§

impl Sub<f64> for Float<f64>

Available on crate feature _float_f64 only.
Source§

impl Sub<f64> for DVec2

Source§

impl Sub<f64> for DVec3

Source§

impl Sub<f64> for DVec4

Source§

impl Sub<i8> for &I8Vec2

Source§

impl Sub<i8> for &I8Vec3

Source§

impl Sub<i8> for &I8Vec4

Source§

impl Sub<i8> for &BigInt

§

impl Sub<i8> for Weekday

§

impl Sub<i8> for i8x16

§

impl Sub<i8> for i8x32

Source§

impl Sub<i8> for I8Vec2

Source§

impl Sub<i8> for I8Vec3

Source§

impl Sub<i8> for I8Vec4

Source§

impl Sub<i8> for BigInt

Source§

impl Sub<i16> for &I16Vec2

Source§

impl Sub<i16> for &I16Vec3

Source§

impl Sub<i16> for &I16Vec4

Source§

impl Sub<i16> for &BigInt

§

impl Sub<i16> for Weekday

§

impl Sub<i16> for i16x8

§

impl Sub<i16> for i16x16

Source§

impl Sub<i16> for I16Vec2

Source§

impl Sub<i16> for I16Vec3

Source§

impl Sub<i16> for I16Vec4

Source§

impl Sub<i16> for BigInt

Source§

impl Sub<i32> for &IVec2

Source§

impl Sub<i32> for &IVec3

Source§

impl Sub<i32> for &IVec4

Source§

impl Sub<i32> for &BigInt

§

impl Sub<i32> for Weekday

§

impl Sub<i32> for i32x4

§

impl Sub<i32> for i32x8

Source§

impl Sub<i32> for IVec2

Source§

impl Sub<i32> for IVec3

Source§

impl Sub<i32> for IVec4

Source§

impl Sub<i32> for BigInt

Source§

impl Sub<i64> for &I64Vec2

Source§

impl Sub<i64> for &I64Vec3

Source§

impl Sub<i64> for &I64Vec4

Source§

impl Sub<i64> for &BigInt

§

impl Sub<i64> for Weekday

§

impl Sub<i64> for i64x2

§

impl Sub<i64> for i64x4

Source§

impl Sub<i64> for Int<i64>

Available on crate feature _int_i64 only.
Source§

impl Sub<i64> for I64Vec2

Source§

impl Sub<i64> for I64Vec3

Source§

impl Sub<i64> for I64Vec4

Source§

impl Sub<i64> for BigInt

Source§

impl Sub<i128> for &BigInt

Source§

impl Sub<i128> for BigInt

Source§

impl Sub<isize> for &BigInt

Source§

impl Sub<isize> for BigInt

Source§

impl Sub<u8> for &U8Vec2

Source§

impl Sub<u8> for &U8Vec3

Source§

impl Sub<u8> for &U8Vec4

Source§

impl Sub<u8> for &BigInt

Source§

impl Sub<u8> for &BigUint

§

impl Sub<u8> for u8x16

§

impl Sub<u8> for u8x32

Source§

impl Sub<u8> for U8Vec2

Source§

impl Sub<u8> for U8Vec3

Source§

impl Sub<u8> for U8Vec4

Source§

impl Sub<u8> for BigInt

Source§

impl Sub<u8> for BigUint

Source§

impl Sub<u16> for &U16Vec2

Source§

impl Sub<u16> for &U16Vec3

Source§

impl Sub<u16> for &U16Vec4

Source§

impl Sub<u16> for &BigInt

Source§

impl Sub<u16> for &BigUint

§

impl Sub<u16> for u16x8

§

impl Sub<u16> for u16x16

Source§

impl Sub<u16> for U16Vec2

Source§

impl Sub<u16> for U16Vec3

Source§

impl Sub<u16> for U16Vec4

Source§

impl Sub<u16> for BigInt

Source§

impl Sub<u16> for BigUint

Source§

impl Sub<u32> for &UVec2

Source§

impl Sub<u32> for &UVec3

Source§

impl Sub<u32> for &UVec4

Source§

impl Sub<u32> for &BigInt

Source§

impl Sub<u32> for &BigUint

§

impl Sub<u32> for u32x4

Source§

impl Sub<u32> for Int<u32>

Available on crate feature _int_u32 only.
Source§

impl Sub<u32> for UVec2

Source§

impl Sub<u32> for UVec3

Source§

impl Sub<u32> for UVec4

Source§

impl Sub<u32> for BigInt

Source§

impl Sub<u32> for BigUint

Source§

impl Sub<u64> for &U64Vec2

Source§

impl Sub<u64> for &U64Vec3

Source§

impl Sub<u64> for &U64Vec4

Source§

impl Sub<u64> for &BigInt

Source§

impl Sub<u64> for &BigUint

§

impl Sub<u64> for ClockTime

§

impl Sub<u64> for u64x2

§

impl Sub<u64> for u64x4

Source§

impl Sub<u64> for U64Vec2

Source§

impl Sub<u64> for U64Vec3

Source§

impl Sub<u64> for U64Vec4

Source§

impl Sub<u64> for BigInt

Source§

impl Sub<u64> for BigUint

Source§

impl Sub<u128> for &BigInt

Source§

impl Sub<u128> for &BigUint

Source§

impl Sub<u128> for BigInt

Source§

impl Sub<u128> for BigUint

Source§

impl Sub<usize> for &USizeVec2

Source§

impl Sub<usize> for &USizeVec3

Source§

impl Sub<usize> for &USizeVec4

Source§

impl Sub<usize> for &BigInt

Source§

impl Sub<usize> for &BigUint

Source§

impl Sub<usize> for USizeVec2

Source§

impl Sub<usize> for USizeVec3

Source§

impl Sub<usize> for USizeVec4

Source§

impl Sub<usize> for BigInt

Source§

impl Sub<usize> for BigUint

§

impl Sub<SignedDuration> for Date

Subtracts a signed duration of time from a date.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Date::checked_sub.

§

type Output = Date

§

impl Sub<SignedDuration> for DateTime

Subtracts a signed duration of time from a datetime.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use DateTime::checked_sub.

§

impl Sub<SignedDuration> for Time

Subtracts a signed duration of time. This uses wrapping arithmetic.

For checked arithmetic, see Time::checked_sub.

§

type Output = Time

§

impl Sub<SignedDuration> for Timestamp

Subtracts a signed duration of time from a timestamp.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Timestamp::checked_sub.

§

impl Sub<SignedDuration> for Offset

Subtracts a signed duration of time from an offset. This panics on overflow.

For checked arithmetic, see Offset::checked_sub.

§

impl Sub<Span> for Date

Subtracts a span of time from a date.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Date::checked_sub.

§

type Output = Date

§

impl Sub<Span> for DateTime

Subtracts a span of time from a datetime.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use DateTime::checked_sub.

§

impl Sub<Span> for Time

Subtracts a span of time. This uses wrapping arithmetic.

For checked arithmetic, see Time::checked_sub.

§

type Output = Time

§

impl Sub<Span> for Timestamp

Subtracts a span of time from a timestamp.

This uses checked arithmetic and panics when it fails. To handle arithmetic without panics, use Timestamp::checked_sub. Note that the failure condition includes overflow and using a Span with non-zero units greater than hours.

§

impl Sub<Span> for Offset

Subtracts a span of time from an offset. This panics on overflow.

For checked arithmetic, see Offset::checked_sub.

§

impl Sub<f32x4> for f32

§

impl Sub<f32x8> for f32

§

impl Sub<f64x2> for f64

§

impl Sub<f64x4> for f64

§

impl Sub<i8x16> for i8

§

impl Sub<i8x32> for i8

§

impl Sub<i16x8> for i16

§

impl Sub<i16x16> for i16

§

impl Sub<i32x4> for i32

§

impl Sub<i32x8> for i32

§

impl Sub<i64x2> for i64

§

impl Sub<i64x4> for i64

§

impl Sub<u8x16> for u8

§

impl Sub<u8x32> for u8

§

impl Sub<u16x8> for u16

§

impl Sub<u16x16> for u16

§

impl Sub<u32x4> for u32

§

impl Sub<u64x2> for u64

§

impl Sub<u64x4> for u64

Source§

impl Sub<Mat3> for &Mat3

Source§

impl Sub<Mat2> for &Mat2

Source§

impl Sub<Mat3A> for &Mat3A

Source§

impl Sub<Mat4> for &Mat4

Source§

impl Sub<Quat> for &Quat

Source§

impl Sub<Vec3A> for &f32

Source§

impl Sub<Vec3A> for &Vec3A

Source§

impl Sub<Vec3A> for f32

Source§

impl Sub<Vec4> for &f32

Source§

impl Sub<Vec4> for &Vec4

Source§

impl Sub<Vec4> for f32

Source§

impl Sub<Vec2> for &f32

Source§

impl Sub<Vec2> for &Vec2

Source§

impl Sub<Vec2> for f32

Source§

impl Sub<Vec3> for &f32

Source§

impl Sub<Vec3> for &Vec3

Source§

impl Sub<Vec3> for f32

Source§

impl Sub<DMat2> for &DMat2

Source§

impl Sub<DMat3> for &DMat3

Source§

impl Sub<DMat4> for &DMat4

Source§

impl Sub<DQuat> for &DQuat

Source§

impl Sub<DVec2> for &f64

Source§

impl Sub<DVec2> for &DVec2

Source§

impl Sub<DVec2> for f64

Source§

impl Sub<DVec3> for &f64

Source§

impl Sub<DVec3> for &DVec3

Source§

impl Sub<DVec3> for f64

Source§

impl Sub<DVec4> for &f64

Source§

impl Sub<DVec4> for &DVec4

Source§

impl Sub<DVec4> for f64

Source§

impl Sub<I8Vec2> for &i8

Source§

impl Sub<I8Vec2> for &I8Vec2

Source§

impl Sub<I8Vec2> for i8

Source§

impl Sub<I8Vec3> for &i8

Source§

impl Sub<I8Vec3> for &I8Vec3

Source§

impl Sub<I8Vec3> for i8

Source§

impl Sub<I8Vec4> for &i8

Source§

impl Sub<I8Vec4> for &I8Vec4

Source§

impl Sub<I8Vec4> for i8

Source§

impl Sub<I16Vec2> for &i16

Source§

impl Sub<I16Vec2> for &I16Vec2

Source§

impl Sub<I16Vec2> for i16

Source§

impl Sub<I16Vec3> for &i16

Source§

impl Sub<I16Vec3> for &I16Vec3

Source§

impl Sub<I16Vec3> for i16

Source§

impl Sub<I16Vec4> for &i16

Source§

impl Sub<I16Vec4> for &I16Vec4

Source§

impl Sub<I16Vec4> for i16

Source§

impl Sub<IVec2> for &i32

Source§

impl Sub<IVec2> for &IVec2

Source§

impl Sub<IVec2> for i32

Source§

impl Sub<IVec3> for &i32

Source§

impl Sub<IVec3> for &IVec3

Source§

impl Sub<IVec3> for i32

Source§

impl Sub<IVec4> for &i32

Source§

impl Sub<IVec4> for &IVec4

Source§

impl Sub<IVec4> for i32

Source§

impl Sub<I64Vec2> for &i64

Source§

impl Sub<I64Vec2> for &I64Vec2

Source§

impl Sub<I64Vec2> for i64

Source§

impl Sub<I64Vec3> for &i64

Source§

impl Sub<I64Vec3> for &I64Vec3

Source§

impl Sub<I64Vec3> for i64

Source§

impl Sub<I64Vec4> for &i64

Source§

impl Sub<I64Vec4> for &I64Vec4

Source§

impl Sub<I64Vec4> for i64

Source§

impl Sub<U8Vec2> for &u8

Source§

impl Sub<U8Vec2> for &U8Vec2

Source§

impl Sub<U8Vec2> for u8

Source§

impl Sub<U8Vec3> for &u8

Source§

impl Sub<U8Vec3> for &U8Vec3

Source§

impl Sub<U8Vec3> for u8

Source§

impl Sub<U8Vec4> for &u8

Source§

impl Sub<U8Vec4> for &U8Vec4

Source§

impl Sub<U8Vec4> for u8

Source§

impl Sub<U16Vec2> for &u16

Source§

impl Sub<U16Vec2> for &U16Vec2

Source§

impl Sub<U16Vec2> for u16

Source§

impl Sub<U16Vec3> for &u16

Source§

impl Sub<U16Vec3> for &U16Vec3

Source§

impl Sub<U16Vec3> for u16

Source§

impl Sub<U16Vec4> for &u16

Source§

impl Sub<U16Vec4> for &U16Vec4

Source§

impl Sub<U16Vec4> for u16

Source§

impl Sub<UVec2> for &u32

Source§

impl Sub<UVec2> for &UVec2

Source§

impl Sub<UVec2> for u32

Source§

impl Sub<UVec3> for &u32

Source§

impl Sub<UVec3> for &UVec3

Source§

impl Sub<UVec3> for u32

Source§

impl Sub<UVec4> for &u32

Source§

impl Sub<UVec4> for &UVec4

Source§

impl Sub<UVec4> for u32

Source§

impl Sub<U64Vec2> for &u64

Source§

impl Sub<U64Vec2> for &U64Vec2

Source§

impl Sub<U64Vec2> for u64

Source§

impl Sub<U64Vec3> for &u64

Source§

impl Sub<U64Vec3> for &U64Vec3

Source§

impl Sub<U64Vec3> for u64

Source§

impl Sub<U64Vec4> for &u64

Source§

impl Sub<U64Vec4> for &U64Vec4

Source§

impl Sub<U64Vec4> for u64

Source§

impl Sub<USizeVec2> for &usize

Source§

impl Sub<USizeVec2> for &USizeVec2

Source§

impl Sub<USizeVec2> for usize

Source§

impl Sub<USizeVec3> for &usize

Source§

impl Sub<USizeVec3> for &USizeVec3

Source§

impl Sub<USizeVec3> for usize

Source§

impl Sub<USizeVec4> for &usize

Source§

impl Sub<USizeVec4> for &USizeVec4

Source§

impl Sub<USizeVec4> for usize

Source§

impl Sub<BigInt> for &i8

Source§

impl Sub<BigInt> for &i16

Source§

impl Sub<BigInt> for &i32

Source§

impl Sub<BigInt> for &i64

Source§

impl Sub<BigInt> for &i128

Source§

impl Sub<BigInt> for &isize

Source§

impl Sub<BigInt> for &u8

Source§

impl Sub<BigInt> for &u16

Source§

impl Sub<BigInt> for &u32

Source§

impl Sub<BigInt> for &u64

Source§

impl Sub<BigInt> for &u128

Source§

impl Sub<BigInt> for &usize

Source§

impl Sub<BigInt> for &BigInt

Source§

impl Sub<BigInt> for i8

Source§

impl Sub<BigInt> for i16

Source§

impl Sub<BigInt> for i32

Source§

impl Sub<BigInt> for i64

Source§

impl Sub<BigInt> for i128

Source§

impl Sub<BigInt> for isize

Source§

impl Sub<BigInt> for u8

Source§

impl Sub<BigInt> for u16

Source§

impl Sub<BigInt> for u32

Source§

impl Sub<BigInt> for u64

Source§

impl Sub<BigInt> for u128

Source§

impl Sub<BigInt> for usize

Source§

impl Sub<BigUint> for &u8

Source§

impl Sub<BigUint> for &u16

Source§

impl Sub<BigUint> for &u32

Source§

impl Sub<BigUint> for &u64

Source§

impl Sub<BigUint> for &u128

Source§

impl Sub<BigUint> for &usize

Source§

impl Sub<BigUint> for &BigUint

Source§

impl Sub<BigUint> for u8

Source§

impl Sub<BigUint> for u16

Source§

impl Sub<BigUint> for u32

Source§

impl Sub<BigUint> for u64

Source§

impl Sub<BigUint> for u128

Source§

impl Sub<BigUint> for usize

§

impl Sub<Duration> for Date

Subtracts an unsigned duration of time from a date.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Date::checked_sub.

§

type Output = Date

§

impl Sub<Duration> for DateTime

Subtracts an unsigned duration of time from a datetime.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use DateTime::checked_sub.

§

impl Sub<Duration> for Time

Subtracts an unsigned duration of time. This uses wrapping arithmetic.

For checked arithmetic, see Time::checked_sub.

§

type Output = Time

§

impl Sub<Duration> for Timestamp

Subtracts an unsigned duration of time from a timestamp.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Timestamp::checked_sub.

§

impl Sub<Duration> for Offset

Subtracts an unsigned duration of time from an offset. This panics on overflow.

For checked arithmetic, see Offset::checked_sub.

1.8.0 · Source§

impl Sub<Duration> for Instant

1.8.0 · Source§

impl Sub<Duration> for SystemTime

Source§

impl Sub<Instant> for TimeDelta

Returns a signed TimeDelta.

Source§

impl Sub<TimeDelta> for SystemInstant

Moves Instant backward or forward.

§

impl<'a> Sub for &'a Zoned

Computes the span of time between two zoned datetimes.

This will return a negative span when the zoned datetime being subtracted is greater.

Since this uses the default configuration for calculating a span between two zoned datetimes (no rounding and largest units is hours), this will never panic or fail in any way. It is guaranteed that the largest non-zero unit in the Span returned will be hours.

To configure the largest unit or enable rounding, use Zoned::since.

§

type Output = Span

1.0.0 · Source§

impl<'a> Sub<f16> for &'a f16

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

impl<'a> Sub<f128> for &'a f128

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

impl<'a> Sub<i128> for &'a i128

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

impl<'a> Sub<u128> for &'a u128

1.0.0 · Source§

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

§

impl<'a> Sub<SignedDuration> for &'a Zoned

Subtracts a signed duration of time from a zoned datetime.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Zoned::checked_sub.

§

impl<'a> Sub<Span> for &'a Zoned

Subtracts a span of time from a zoned datetime.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Zoned::checked_sub.

§

impl<'a> Sub<Duration> for &'a Zoned

Subtracts an unsigned duration of time from a zoned datetime.

This uses checked arithmetic and panics on overflow. To handle overflow without panics, use Zoned::checked_sub.

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

impl<'a> Sub<Saturating<i128>> for &'a Saturating<i128>

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

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

1.74.0 · Source§

impl<'a> Sub<Saturating<u128>> for &'a Saturating<u128>

1.74.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

impl<'a> Sub<Wrapping<i128>> for &'a Wrapping<i128>

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

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

1.14.0 · Source§

impl<'a> Sub<Wrapping<u128>> for &'a Wrapping<u128>

1.14.0 · Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'lhs, 'rhs, T, const N: usize> Sub<&'rhs Simd<T, N>> for &'lhs Simd<T, N>
where T: SimdElement, Simd<T, N>: Sub<Output = Simd<T, N>>, LaneCount<N>: SupportedLaneCount,

Source§

type Output = Simd<T, N>

Source§

impl<'o> Sub<&'o f64> for Float<f64>

Available on crate feature _float_f64 only.
Source§

impl<'o> Sub<&'o i64> for Int<i64>

Available on crate feature _int_i64 only.
Source§

impl<'o> Sub<&'o u32> for Int<u32>

Available on crate feature _int_u32 only.
Source§

impl<'o> Sub<&'o Float<f64>> for Float<f64>

Available on crate feature _float_f64 only.
Source§

impl<'o> Sub<&'o Int<i64>> for Int<i64>

Available on crate feature _int_i64 only.
Source§

impl<'o> Sub<&'o Int<u32>> for Int<u32>

Available on crate feature _int_u32 only.
§

impl<'py> Sub for &Bound<'py, PyComplex>

§

type Output = Bound<'py, PyComplex>

§

impl<'py> Sub for Borrowed<'_, 'py, PyComplex>

§

type Output = Bound<'py, PyComplex>

§

impl<'py> Sub for Bound<'py, PyComplex>

§

type Output = Bound<'py, PyComplex>

§

impl<'py> Sub<&Bound<'py, PyComplex>> for Bound<'py, PyComplex>

§

type Output = Bound<'py, PyComplex>

§

impl<'py> Sub<Bound<'py, PyComplex>> for &Bound<'py, PyComplex>

§

type Output = Bound<'py, PyComplex>

Source§

impl<'s> Sub<f64> for &'s Float<f64>

Available on crate feature _float_f64 only.
Source§

impl<'s> Sub<i64> for &'s Int<i64>

Available on crate feature _int_i64 only.
Source§

impl<'s> Sub<u32> for &'s Int<u32>

Available on crate feature _int_u32 only.
Source§

impl<'s> Sub<Float<f64>> for &'s Float<f64>

Available on crate feature _float_f64 only.
Source§

impl<'s> Sub<Int<i64>> for &'s Int<i64>

Available on crate feature _int_i64 only.
Source§

impl<'s> Sub<Int<u32>> for &'s Int<u32>

Available on crate feature _int_u32 only.
Source§

impl<'s, 'o> Sub<&'o f64> for &'s Float<f64>

Available on crate feature _float_f64 only.
Source§

impl<'s, 'o> Sub<&'o i64> for &'s Int<i64>

Available on crate feature _int_i64 only.
Source§

impl<'s, 'o> Sub<&'o u32> for &'s Int<u32>

Available on crate feature _int_u32 only.
Source§

impl<'s, 'o> Sub<&'o Float<f64>> for &'s Float<f64>

Available on crate feature _float_f64 only.
Source§

impl<'s, 'o> Sub<&'o Int<i64>> for &'s Int<i64>

Available on crate feature _int_i64 only.
Source§

impl<'s, 'o> Sub<&'o Int<u32>> for &'s Int<u32>

Available on crate feature _int_u32 only.
Source§

impl<T> Sub for Ratio<T>
where T: Clone + Integer,

Source§

impl<T> Sub<T> for Ratio<T>
where T: Clone + Integer,

1.0.0 · Source§

impl<T, A> Sub<&BTreeSet<T, A>> for &BTreeSet<T, A>
where T: Ord + Clone, A: Allocator + Clone,

§

impl<T, Rhs> Sub<Rhs> for Value<T>
where T: Sub<Rhs, Output = T>, Rhs: Copy,

§

type Output = Value<T>

§

impl<T, S1, S2> Sub<&IndexSet<T, S2>> for &IndexSet<T, S1>
where T: Eq + Hash + Clone, S1: BuildHasher + Default, S2: BuildHasher,

§

type Output = IndexSet<T, S1>

1.0.0 · Source§

impl<T, S> Sub<&HashSet<T, S>> for &devela::_dep::_std::collections::HashSet<T, S>
where T: Eq + Hash + Clone, S: BuildHasher + Default,

Source§

type Output = HashSet<T, S>

§

impl<T, S, A> Sub<&HashSet<T, S, A>> for &devela::all::HashSet<T, S, A>
where T: Eq + Hash + Clone, S: BuildHasher + Default, A: Allocator + Default,

§

type Output = HashSet<T, S, A>

Source§

impl<T, const N: usize> Sub<&Simd<T, N>> for Simd<T, N>
where T: SimdElement, Simd<T, N>: Sub<Output = Simd<T, N>>, LaneCount<N>: SupportedLaneCount,

Source§

type Output = Simd<T, N>

Source§

impl<T, const N: usize> Sub<Simd<T, N>> for &Simd<T, N>
where T: SimdElement, Simd<T, N>: Sub<Output = Simd<T, N>>, LaneCount<N>: SupportedLaneCount,

Source§

type Output = Simd<T, N>

Source§

impl<T: Clone + Sub<Output = T>> Sub for VecVector<T>

Available on crate feature linear only.
Source§

impl<T: Clone + Sub<Output = T>, const D: usize> Sub for Vector<T, D>

Available on crate feature linear only.
Source§

type Output = Vector<T, D>

Source§

impl<const N: usize> Sub for Simd<f32, N>

Source§

impl<const N: usize> Sub for Simd<f64, N>

Source§

impl<const N: usize> Sub for Simd<i8, N>

Source§

impl<const N: usize> Sub for Simd<i16, N>

Source§

impl<const N: usize> Sub for Simd<i32, N>

Source§

impl<const N: usize> Sub for Simd<i64, N>

Source§

impl<const N: usize> Sub for Simd<isize, N>

Source§

impl<const N: usize> Sub for Simd<u8, N>

Source§

impl<const N: usize> Sub for Simd<u16, N>

Source§

impl<const N: usize> Sub for Simd<u32, N>

Source§

impl<const N: usize> Sub for Simd<u64, N>

Source§

impl<const N: usize> Sub for Simd<usize, N>