pub trait SubAssign<Rhs = Self> {
// Required method
fn sub_assign(&mut self, rhs: Rhs);
}
Expand description
core
The subtraction assignment operator -=
.
Re-exported from core
::ops::
.
The subtraction assignment operator -=
.
§Examples
This example creates a Point
struct that implements the SubAssign
trait, and then demonstrates sub-assigning to a mutable Point
.
use std::ops::SubAssign;
#[derive(Debug, Copy, Clone, PartialEq)]
struct Point {
x: i32,
y: i32,
}
impl SubAssign for Point {
fn sub_assign(&mut self, other: Self) {
*self = Self {
x: self.x - other.x,
y: self.y - other.y,
};
}
}
let mut point = Point { x: 3, y: 3 };
point -= Point { x: 2, y: 3 };
assert_eq!(point, Point {x: 1, y: 0});
Required Methods§
1.8.0 · Sourcefn sub_assign(&mut self, rhs: Rhs)
fn sub_assign(&mut self, rhs: Rhs)
Implementors§
impl SubAssign for f16
impl SubAssign for f32
impl SubAssign for f64
impl SubAssign for f128
impl SubAssign for i8
impl SubAssign for i16
impl SubAssign for i32
impl SubAssign for i64
impl SubAssign for i128
impl SubAssign for isize
impl SubAssign for u8
impl SubAssign for u16
impl SubAssign for u32
impl SubAssign for u64
impl SubAssign for u128
impl SubAssign for usize
impl SubAssign for KeyEventState
impl SubAssign for KeyModifiers
impl SubAssign for KeyboardEnhancementFlags
impl SubAssign for SignedDuration
impl SubAssign for Decibels
impl SubAssign for Frame
impl SubAssign for Mix
impl SubAssign for Panning
impl SubAssign for PlaybackRate
impl SubAssign for Semitones
impl SubAssign for f32_be
impl SubAssign for f32_le
impl SubAssign for f64_be
impl SubAssign for f64_le
impl SubAssign for i16_be
impl SubAssign for i16_le
impl SubAssign for i32_be
impl SubAssign for i32_le
impl SubAssign for i64_be
impl SubAssign for i64_le
impl SubAssign for i128_be
impl SubAssign for i128_le
impl SubAssign for u16_be
impl SubAssign for u16_le
impl SubAssign for u32_be
impl SubAssign for u32_le
impl SubAssign for u64_be
impl SubAssign for u64_le
impl SubAssign for u128_be
impl SubAssign for u128_le
impl SubAssign for f32_ube
impl SubAssign for f32_ule
impl SubAssign for f64_ube
impl SubAssign for f64_ule
impl SubAssign for i16_ube
impl SubAssign for i16_ule
impl SubAssign for i32_ube
impl SubAssign for i32_ule
impl SubAssign for i64_ube
impl SubAssign for i64_ule
impl SubAssign for i128_ube
impl SubAssign for i128_ule
impl SubAssign for u16_ube
impl SubAssign for u16_ule
impl SubAssign for u32_ube
impl SubAssign for u32_ule
impl SubAssign for u64_ube
impl SubAssign for u64_ule
impl SubAssign for u128_ube
impl SubAssign for u128_ule
impl SubAssign for devela::_dep::rustix::event::epoll::CreateFlags
impl SubAssign for EventfdFlags
impl SubAssign for PollFlags
impl SubAssign for devela::_dep::rustix::fs::inotify::CreateFlags
impl SubAssign for ReadFlags
impl SubAssign for WatchFlags
impl SubAssign for Access
impl SubAssign for AtFlags
impl SubAssign for FallocateFlags
impl SubAssign for FdFlags
impl SubAssign for IFlags
impl SubAssign for MemfdFlags
impl SubAssign for Mode
impl SubAssign for MountFlags
impl SubAssign for MountPropagationFlags
impl SubAssign for OFlags
impl SubAssign for RenameFlags
impl SubAssign for ResolveFlags
impl SubAssign for SealFlags
impl SubAssign for StatVfsMountFlags
impl SubAssign for StatxFlags
impl SubAssign for UnmountFlags
impl SubAssign for XattrFlags
impl SubAssign for DupFlags
impl SubAssign for ReadWriteFlags
impl SubAssign for EventFlags
impl SubAssign for IoringAcceptFlags
impl SubAssign for IoringAsyncCancelFlags
impl SubAssign for IoringCqFlags
impl SubAssign for IoringCqeFlags
impl SubAssign for IoringEnterFlags
impl SubAssign for IoringFeatureFlags
impl SubAssign for IoringFsyncFlags
impl SubAssign for IoringMsgringFlags
impl SubAssign for IoringOpFlags
impl SubAssign for IoringPollFlags
impl SubAssign for IoringRecvFlags
impl SubAssign for IoringRegisterFlags
impl SubAssign for IoringRsrcFlags
impl SubAssign for IoringSendFlags
impl SubAssign for IoringSetupFlags
impl SubAssign for IoringSqFlags
impl SubAssign for IoringSqeFlags
impl SubAssign for IoringTimeoutFlags
impl SubAssign for RecvFlags
impl SubAssign for RecvmsgOutFlags
impl SubAssign for SendFlags
impl SubAssign for SocketFlags
impl SubAssign for devela::_dep::rustix::io_uring::SpliceFlags
impl SubAssign for MapFlags
impl SubAssign for MlockAllFlags
impl SubAssign for MlockFlags
impl SubAssign for MprotectFlags
impl SubAssign for MremapFlags
impl SubAssign for MsyncFlags
impl SubAssign for ProtFlags
impl SubAssign for UserfaultfdFlags
impl SubAssign for FsMountFlags
impl SubAssign for FsOpenFlags
impl SubAssign for FsPickFlags
impl SubAssign for MountAttrFlags
impl SubAssign for MoveMountFlags
impl SubAssign for OpenTreeFlags
impl SubAssign for SockaddrXdpFlags
impl SubAssign for XdpDescOptions
impl SubAssign for XdpOptionsFlags
impl SubAssign for XdpRingFlags
impl SubAssign for XdpUmemRegFlags
impl SubAssign for PipeFlags
impl SubAssign for devela::_dep::rustix::pipe::SpliceFlags
impl SubAssign for FloatingPointEmulationControl
impl SubAssign for FloatingPointExceptionMode
impl SubAssign for MembarrierQuery
impl SubAssign for PidfdFlags
impl SubAssign for PidfdGetfdFlags
impl SubAssign for SpeculationFeatureControl
impl SubAssign for SpeculationFeatureState
impl SubAssign for UnalignedAccessControl
impl SubAssign for WaitOptions
impl SubAssign for WaitidOptions
impl SubAssign for OpenptFlags
impl SubAssign for GetRandomFlags
impl SubAssign for ShmOFlags
impl SubAssign for ControlModes
impl SubAssign for InputModes
impl SubAssign for LocalModes
impl SubAssign for OutputModes
impl SubAssign for CapabilitiesSecureBits
impl SubAssign for CapabilityFlags
impl SubAssign for devela::_dep::rustix::thread::FutexFlags
impl SubAssign for TaggedAddressMode
impl SubAssign for ThreadNameSpaceType
impl SubAssign for TimerfdFlags
impl SubAssign for TimerfdTimerFlags
impl SubAssign for Channels
impl SubAssign for Complex
impl SubAssign for f32x4
impl SubAssign for f32x8
impl SubAssign for f64x2
impl SubAssign for f64x4
impl SubAssign for i8x16
impl SubAssign for i8x32
impl SubAssign for i16x8
impl SubAssign for i16x16
impl SubAssign for i32x4
impl SubAssign for i32x8
impl SubAssign for i64x2
impl SubAssign for u8x16
impl SubAssign for u16x8
impl SubAssign for u16x16
impl SubAssign for u32x4
impl SubAssign for u32x8
impl SubAssign for u64x2
impl SubAssign for u64x4
impl SubAssign for Float<f32>
_float_f32
only.impl SubAssign for Float<f64>
_float_f64
only.impl SubAssign for Int<i8>
_int_i8
only.impl SubAssign for Int<i16>
_int_i16
only.impl SubAssign for Int<i32>
_int_i32
only.impl SubAssign for Int<i64>
_int_i64
only.impl SubAssign for Int<i128>
_int_i128
only.impl SubAssign for Int<isize>
_int_isize
only.impl SubAssign for Int<u8>
_int_i8
only.impl SubAssign for Int<u16>
_int_u16
only.impl SubAssign for Int<u32>
_int_u32
only.impl SubAssign for Int<u64>
_int_u64
only.impl SubAssign for Int<u128>
_int_u128
only.impl SubAssign for Int<usize>
_int_usize
only.impl SubAssign for Duration
impl SubAssign for Mat3
impl SubAssign for Mat2
impl SubAssign for Mat3A
impl SubAssign for Mat4
impl SubAssign for Vec3A
impl SubAssign for Vec4
impl SubAssign for Vec2
impl SubAssign for Vec3
impl SubAssign for DMat2
impl SubAssign for DMat3
impl SubAssign for DMat4
impl SubAssign for DVec2
impl SubAssign for DVec3
impl SubAssign for DVec4
impl SubAssign for I8Vec2
impl SubAssign for I8Vec3
impl SubAssign for I8Vec4
impl SubAssign for I16Vec2
impl SubAssign for I16Vec3
impl SubAssign for I16Vec4
impl SubAssign for IVec2
impl SubAssign for IVec3
impl SubAssign for IVec4
impl SubAssign for I64Vec2
impl SubAssign for I64Vec3
impl SubAssign for I64Vec4
impl SubAssign for U8Vec2
impl SubAssign for U8Vec3
impl SubAssign for U8Vec4
impl SubAssign for U16Vec2
impl SubAssign for U16Vec3
impl SubAssign for U16Vec4
impl SubAssign for UVec2
impl SubAssign for UVec3
impl SubAssign for UVec4
impl SubAssign for U64Vec2
impl SubAssign for U64Vec3
impl SubAssign for U64Vec4
impl SubAssign for Saturating<i8>
impl SubAssign for Saturating<i16>
impl SubAssign for Saturating<i32>
impl SubAssign for Saturating<i64>
impl SubAssign for Saturating<i128>
impl SubAssign for Saturating<isize>
impl SubAssign for Saturating<u8>
impl SubAssign for Saturating<u16>
impl SubAssign for Saturating<u32>
impl SubAssign for Saturating<u64>
impl SubAssign for Saturating<u128>
impl SubAssign for Saturating<usize>
impl SubAssign for Wrapping<i8>
impl SubAssign for Wrapping<i16>
impl SubAssign for Wrapping<i32>
impl SubAssign for Wrapping<i64>
impl SubAssign for Wrapping<i128>
impl SubAssign for Wrapping<isize>
impl SubAssign for Wrapping<u8>
impl SubAssign for Wrapping<u16>
impl SubAssign for Wrapping<u32>
impl SubAssign for Wrapping<u64>
impl SubAssign for Wrapping<u128>
impl SubAssign for Wrapping<usize>
impl SubAssign for m128
impl SubAssign for m128d
impl SubAssign for Flags
impl SubAssign for MilliBel
impl SubAssign for PortCap
impl SubAssign for PortType
impl SubAssign for Remove
impl SubAssign<&f16> for f16
impl SubAssign<&f32> for f32
impl SubAssign<&f32> for f32_be
impl SubAssign<&f32> for f32_le
impl SubAssign<&f32> for f32_ube
impl SubAssign<&f32> for f32_ule
impl SubAssign<&f32> for Vec3A
impl SubAssign<&f32> for Vec4
impl SubAssign<&f32> for Vec2
impl SubAssign<&f32> for Vec3
impl SubAssign<&f64> for f64
impl SubAssign<&f64> for f64_be
impl SubAssign<&f64> for f64_le
impl SubAssign<&f64> for f64_ube
impl SubAssign<&f64> for f64_ule
impl SubAssign<&f64> for DVec2
impl SubAssign<&f64> for DVec3
impl SubAssign<&f64> for DVec4
impl SubAssign<&f128> for f128
impl SubAssign<&i8> for i8
impl SubAssign<&i8> for I8Vec2
impl SubAssign<&i8> for I8Vec3
impl SubAssign<&i8> for I8Vec4
impl SubAssign<&i8> for Saturating<i8>
impl SubAssign<&i8> for Wrapping<i8>
impl SubAssign<&i16> for i16
impl SubAssign<&i16> for i16_be
impl SubAssign<&i16> for i16_le
impl SubAssign<&i16> for i16_ube
impl SubAssign<&i16> for i16_ule
impl SubAssign<&i16> for I16Vec2
impl SubAssign<&i16> for I16Vec3
impl SubAssign<&i16> for I16Vec4
impl SubAssign<&i16> for Saturating<i16>
impl SubAssign<&i16> for Wrapping<i16>
impl SubAssign<&i32> for i32
impl SubAssign<&i32> for i32_be
impl SubAssign<&i32> for i32_le
impl SubAssign<&i32> for i32_ube
impl SubAssign<&i32> for i32_ule
impl SubAssign<&i32> for IVec2
impl SubAssign<&i32> for IVec3
impl SubAssign<&i32> for IVec4
impl SubAssign<&i32> for Saturating<i32>
impl SubAssign<&i32> for Wrapping<i32>
impl SubAssign<&i64> for i64
impl SubAssign<&i64> for i64_be
impl SubAssign<&i64> for i64_le
impl SubAssign<&i64> for i64_ube
impl SubAssign<&i64> for i64_ule
impl SubAssign<&i64> for I64Vec2
impl SubAssign<&i64> for I64Vec3
impl SubAssign<&i64> for I64Vec4
impl SubAssign<&i64> for Saturating<i64>
impl SubAssign<&i64> for Wrapping<i64>
impl SubAssign<&i128> for i128
impl SubAssign<&i128> for i128_be
impl SubAssign<&i128> for i128_le
impl SubAssign<&i128> for i128_ube
impl SubAssign<&i128> for i128_ule
impl SubAssign<&i128> for Saturating<i128>
impl SubAssign<&i128> for Wrapping<i128>
impl SubAssign<&isize> for isize
impl SubAssign<&isize> for Saturating<isize>
impl SubAssign<&isize> for Wrapping<isize>
impl SubAssign<&u8> for u8
impl SubAssign<&u8> for U8Vec2
impl SubAssign<&u8> for U8Vec3
impl SubAssign<&u8> for U8Vec4
impl SubAssign<&u8> for Saturating<u8>
impl SubAssign<&u8> for Wrapping<u8>
impl SubAssign<&u16> for u16
impl SubAssign<&u16> for u16_be
impl SubAssign<&u16> for u16_le
impl SubAssign<&u16> for u16_ube
impl SubAssign<&u16> for u16_ule
impl SubAssign<&u16> for U16Vec2
impl SubAssign<&u16> for U16Vec3
impl SubAssign<&u16> for U16Vec4
impl SubAssign<&u16> for Saturating<u16>
impl SubAssign<&u16> for Wrapping<u16>
impl SubAssign<&u32> for u32
impl SubAssign<&u32> for u32_be
impl SubAssign<&u32> for u32_le
impl SubAssign<&u32> for u32_ube
impl SubAssign<&u32> for u32_ule
impl SubAssign<&u32> for UVec2
impl SubAssign<&u32> for UVec3
impl SubAssign<&u32> for UVec4
impl SubAssign<&u32> for Saturating<u32>
impl SubAssign<&u32> for Wrapping<u32>
impl SubAssign<&u64> for u64
impl SubAssign<&u64> for u64_be
impl SubAssign<&u64> for u64_le
impl SubAssign<&u64> for u64_ube
impl SubAssign<&u64> for u64_ule
impl SubAssign<&u64> for U64Vec2
impl SubAssign<&u64> for U64Vec3
impl SubAssign<&u64> for U64Vec4
impl SubAssign<&u64> for Saturating<u64>
impl SubAssign<&u64> for Wrapping<u64>
impl SubAssign<&u128> for u128
impl SubAssign<&u128> for u128_be
impl SubAssign<&u128> for u128_le
impl SubAssign<&u128> for u128_ube
impl SubAssign<&u128> for u128_ule
impl SubAssign<&u128> for Saturating<u128>
impl SubAssign<&u128> for Wrapping<u128>
impl SubAssign<&usize> for usize
impl SubAssign<&usize> for Saturating<usize>
impl SubAssign<&usize> for Wrapping<usize>
impl SubAssign<&f32_be> for f32_be
impl SubAssign<&f32_le> for f32_le
impl SubAssign<&f64_be> for f64_be
impl SubAssign<&f64_le> for f64_le
impl SubAssign<&i16_be> for i16_be
impl SubAssign<&i16_le> for i16_le
impl SubAssign<&i32_be> for i32_be
impl SubAssign<&i32_le> for i32_le
impl SubAssign<&i64_be> for i64_be
impl SubAssign<&i64_le> for i64_le
impl SubAssign<&i128_be> for i128_be
impl SubAssign<&i128_le> for i128_le
impl SubAssign<&u16_be> for u16_be
impl SubAssign<&u16_le> for u16_le
impl SubAssign<&u32_be> for u32_be
impl SubAssign<&u32_le> for u32_le
impl SubAssign<&u64_be> for u64_be
impl SubAssign<&u64_le> for u64_le
impl SubAssign<&u128_be> for u128_be
impl SubAssign<&u128_le> for u128_le
impl SubAssign<&f32_ube> for f32_ube
impl SubAssign<&f32_ule> for f32_ule
impl SubAssign<&f64_ube> for f64_ube
impl SubAssign<&f64_ule> for f64_ule
impl SubAssign<&i16_ube> for i16_ube
impl SubAssign<&i16_ule> for i16_ule
impl SubAssign<&i32_ube> for i32_ube
impl SubAssign<&i32_ule> for i32_ule
impl SubAssign<&i64_ube> for i64_ube
impl SubAssign<&i64_ule> for i64_ule
impl SubAssign<&i128_ube> for i128_ube
impl SubAssign<&i128_ule> for i128_ule
impl SubAssign<&u16_ube> for u16_ube
impl SubAssign<&u16_ule> for u16_ule
impl SubAssign<&u32_ube> for u32_ube
impl SubAssign<&u32_ule> for u32_ule
impl SubAssign<&u64_ube> for u64_ube
impl SubAssign<&u64_ule> for u64_ule
impl SubAssign<&u128_ube> for u128_ube
impl SubAssign<&u128_ule> for u128_ule
impl SubAssign<&f32x4> for f32x4
impl SubAssign<&f32x8> for f32x8
impl SubAssign<&f64x2> for f64x2
impl SubAssign<&f64x4> for f64x4
impl SubAssign<&i8x16> for i8x16
impl SubAssign<&i8x32> for i8x32
impl SubAssign<&i16x8> for i16x8
impl SubAssign<&i16x16> for i16x16
impl SubAssign<&i32x4> for i32x4
impl SubAssign<&i32x8> for i32x8
impl SubAssign<&i64x2> for i64x2
impl SubAssign<&u8x16> for u8x16
impl SubAssign<&u16x8> for u16x8
impl SubAssign<&u16x16> for u16x16
impl SubAssign<&u32x4> for u32x4
impl SubAssign<&u32x8> for u32x8
impl SubAssign<&u64x2> for u64x2
impl SubAssign<&u64x4> for u64x4
impl SubAssign<&Vec3A> for Vec3A
impl SubAssign<&Vec4> for Vec4
impl SubAssign<&Vec2> for Vec2
impl SubAssign<&Vec3> for Vec3
impl SubAssign<&DVec2> for DVec2
impl SubAssign<&DVec3> for DVec3
impl SubAssign<&DVec4> for DVec4
impl SubAssign<&I8Vec2> for I8Vec2
impl SubAssign<&I8Vec3> for I8Vec3
impl SubAssign<&I8Vec4> for I8Vec4
impl SubAssign<&I16Vec2> for I16Vec2
impl SubAssign<&I16Vec3> for I16Vec3
impl SubAssign<&I16Vec4> for I16Vec4
impl SubAssign<&IVec2> for IVec2
impl SubAssign<&IVec3> for IVec3
impl SubAssign<&IVec4> for IVec4
impl SubAssign<&I64Vec2> for I64Vec2
impl SubAssign<&I64Vec3> for I64Vec3
impl SubAssign<&I64Vec4> for I64Vec4
impl SubAssign<&U8Vec2> for U8Vec2
impl SubAssign<&U8Vec3> for U8Vec3
impl SubAssign<&U8Vec4> for U8Vec4
impl SubAssign<&U16Vec2> for U16Vec2
impl SubAssign<&U16Vec3> for U16Vec3
impl SubAssign<&U16Vec4> for U16Vec4
impl SubAssign<&UVec2> for UVec2
impl SubAssign<&UVec3> for UVec3
impl SubAssign<&UVec4> for UVec4
impl SubAssign<&U64Vec2> for U64Vec2
impl SubAssign<&U64Vec3> for U64Vec3
impl SubAssign<&U64Vec4> for U64Vec4
impl SubAssign<&Saturating<i8>> for Saturating<i8>
impl SubAssign<&Saturating<i16>> for Saturating<i16>
impl SubAssign<&Saturating<i32>> for Saturating<i32>
impl SubAssign<&Saturating<i64>> for Saturating<i64>
impl SubAssign<&Saturating<i128>> for Saturating<i128>
impl SubAssign<&Saturating<isize>> for Saturating<isize>
impl SubAssign<&Saturating<u8>> for Saturating<u8>
impl SubAssign<&Saturating<u16>> for Saturating<u16>
impl SubAssign<&Saturating<u32>> for Saturating<u32>
impl SubAssign<&Saturating<u64>> for Saturating<u64>
impl SubAssign<&Saturating<u128>> for Saturating<u128>
impl SubAssign<&Saturating<usize>> for Saturating<usize>
impl SubAssign<&Wrapping<i8>> for Wrapping<i8>
impl SubAssign<&Wrapping<i16>> for Wrapping<i16>
impl SubAssign<&Wrapping<i32>> for Wrapping<i32>
impl SubAssign<&Wrapping<i64>> for Wrapping<i64>
impl SubAssign<&Wrapping<i128>> for Wrapping<i128>
impl SubAssign<&Wrapping<isize>> for Wrapping<isize>
impl SubAssign<&Wrapping<u8>> for Wrapping<u8>
impl SubAssign<&Wrapping<u16>> for Wrapping<u16>
impl SubAssign<&Wrapping<u32>> for Wrapping<u32>
impl SubAssign<&Wrapping<u64>> for Wrapping<u64>
impl SubAssign<&Wrapping<u128>> for Wrapping<u128>
impl SubAssign<&Wrapping<usize>> for Wrapping<usize>
impl SubAssign<f32> for f32_be
impl SubAssign<f32> for f32_le
impl SubAssign<f32> for f32_ube
impl SubAssign<f32> for f32_ule
impl SubAssign<f32> for Float<f32>
_float_f32
only.impl SubAssign<f32> for Vec3A
impl SubAssign<f32> for Vec4
impl SubAssign<f32> for Vec2
impl SubAssign<f32> for Vec3
impl SubAssign<f64> for ClockTime
impl SubAssign<f64> for f64_be
impl SubAssign<f64> for f64_le
impl SubAssign<f64> for f64_ube
impl SubAssign<f64> for f64_ule
impl SubAssign<f64> for Float<f64>
_float_f64
only.impl SubAssign<f64> for DVec2
impl SubAssign<f64> for DVec3
impl SubAssign<f64> for DVec4
impl SubAssign<i8> for Weekday
impl SubAssign<i8> for Int<i8>
_int_i8
only.impl SubAssign<i8> for I8Vec2
impl SubAssign<i8> for I8Vec3
impl SubAssign<i8> for I8Vec4
impl SubAssign<i8> for Saturating<i8>
impl SubAssign<i8> for Wrapping<i8>
impl SubAssign<i16> for Weekday
impl SubAssign<i16> for i16_be
impl SubAssign<i16> for i16_le
impl SubAssign<i16> for i16_ube
impl SubAssign<i16> for i16_ule
impl SubAssign<i16> for Int<i16>
_int_i16
only.impl SubAssign<i16> for I16Vec2
impl SubAssign<i16> for I16Vec3
impl SubAssign<i16> for I16Vec4
impl SubAssign<i16> for Saturating<i16>
impl SubAssign<i16> for Wrapping<i16>
impl SubAssign<i32> for Weekday
impl SubAssign<i32> for i32_be
impl SubAssign<i32> for i32_le
impl SubAssign<i32> for i32_ube
impl SubAssign<i32> for i32_ule
impl SubAssign<i32> for Int<i32>
_int_i32
only.impl SubAssign<i32> for IVec2
impl SubAssign<i32> for IVec3
impl SubAssign<i32> for IVec4
impl SubAssign<i32> for Saturating<i32>
impl SubAssign<i32> for Wrapping<i32>
impl SubAssign<i64> for Weekday
impl SubAssign<i64> for i64_be
impl SubAssign<i64> for i64_le
impl SubAssign<i64> for i64_ube
impl SubAssign<i64> for i64_ule
impl SubAssign<i64> for Int<i64>
_int_i64
only.impl SubAssign<i64> for I64Vec2
impl SubAssign<i64> for I64Vec3
impl SubAssign<i64> for I64Vec4
impl SubAssign<i64> for Saturating<i64>
impl SubAssign<i64> for Wrapping<i64>
impl SubAssign<i128> for i128_be
impl SubAssign<i128> for i128_le
impl SubAssign<i128> for i128_ube
impl SubAssign<i128> for i128_ule
impl SubAssign<i128> for Int<i128>
_int_i128
only.impl SubAssign<i128> for Saturating<i128>
impl SubAssign<i128> for Wrapping<i128>
impl SubAssign<isize> for Int<isize>
_int_isize
only.impl SubAssign<isize> for Saturating<isize>
impl SubAssign<isize> for Wrapping<isize>
impl SubAssign<u8> for Int<u8>
_int_i8
only.impl SubAssign<u8> for U8Vec2
impl SubAssign<u8> for U8Vec3
impl SubAssign<u8> for U8Vec4
impl SubAssign<u8> for Saturating<u8>
impl SubAssign<u8> for Wrapping<u8>
impl SubAssign<u16> for u16_be
impl SubAssign<u16> for u16_le
impl SubAssign<u16> for u16_ube
impl SubAssign<u16> for u16_ule
impl SubAssign<u16> for Int<u16>
_int_u16
only.impl SubAssign<u16> for U16Vec2
impl SubAssign<u16> for U16Vec3
impl SubAssign<u16> for U16Vec4
impl SubAssign<u16> for Saturating<u16>
impl SubAssign<u16> for Wrapping<u16>
impl SubAssign<u32> for u32_be
impl SubAssign<u32> for u32_le
impl SubAssign<u32> for u32_ube
impl SubAssign<u32> for u32_ule
impl SubAssign<u32> for Int<u32>
_int_u32
only.impl SubAssign<u32> for UVec2
impl SubAssign<u32> for UVec3
impl SubAssign<u32> for UVec4
impl SubAssign<u32> for Saturating<u32>
impl SubAssign<u32> for Wrapping<u32>
impl SubAssign<u64> for ClockTime
impl SubAssign<u64> for u64_be
impl SubAssign<u64> for u64_le
impl SubAssign<u64> for u64_ube
impl SubAssign<u64> for u64_ule
impl SubAssign<u64> for Int<u64>
_int_u64
only.impl SubAssign<u64> for U64Vec2
impl SubAssign<u64> for U64Vec3
impl SubAssign<u64> for U64Vec4
impl SubAssign<u64> for Saturating<u64>
impl SubAssign<u64> for Wrapping<u64>
impl SubAssign<u128> for u128_be
impl SubAssign<u128> for u128_le
impl SubAssign<u128> for u128_ube
impl SubAssign<u128> for u128_ule
impl SubAssign<u128> for Int<u128>
_int_u128
only.impl SubAssign<u128> for Saturating<u128>
impl SubAssign<u128> for Wrapping<u128>
impl SubAssign<usize> for Int<usize>
_int_usize
only.impl SubAssign<usize> for Saturating<usize>
impl SubAssign<usize> for Wrapping<usize>
impl SubAssign<SignedDuration> for Date
Subtracts a signed duration of time from a date in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Date::checked_sub
.
impl SubAssign<SignedDuration> for DateTime
Subtracts a signed duration of time from a datetime in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use DateTime::checked_sub
.
impl SubAssign<SignedDuration> for Time
Subtracts a signed duration of time in place. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_sub
.
impl SubAssign<SignedDuration> for Timestamp
Subtracts a signed duration of time from a timestamp in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Timestamp::checked_sub
.
impl SubAssign<SignedDuration> for Zoned
Subtracts a signed duration of time from a zoned datetime in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Zoned::checked_sub
.
impl SubAssign<SignedDuration> for Offset
Subtracts a signed duration of time from an offset in place. This panics on overflow.
For checked arithmetic, see Offset::checked_sub
.
impl SubAssign<Span> for Date
Subtracts a span of time from a date in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Date::checked_sub
.
impl SubAssign<Span> for DateTime
Subtracts a span of time from a datetime in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use DateTime::checked_sub
.
impl SubAssign<Span> for Time
Subtracts a span of time in place. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_sub
.
impl SubAssign<Span> for Timestamp
Subtracts a span of time from a timestamp in place.
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 SubAssign<Span> for Zoned
Subtracts a span of time from a zoned datetime in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Zoned::checked_sub
.
impl SubAssign<Span> for Offset
Subtracts a span of time from an offset in place. This panics on overflow.
For checked arithmetic, see Offset::checked_sub
.
impl SubAssign<Duration> for Date
Subtracts an unsigned duration of time from a date in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Date::checked_sub
.
impl SubAssign<Duration> for DateTime
Subtracts an unsigned duration of time from a datetime in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use DateTime::checked_sub
.
impl SubAssign<Duration> for Time
Subtracts an unsigned duration of time in place. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_sub
.
impl SubAssign<Duration> for Timestamp
Subtracts an unsigned duration of time from a timestamp in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Timestamp::checked_sub
.
impl SubAssign<Duration> for Zoned
Subtracts an unsigned duration of time from a zoned datetime in place.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Zoned::checked_sub
.
impl SubAssign<Duration> for Offset
Subtracts an unsigned duration of time from an offset in place. This panics on overflow.
For checked arithmetic, see Offset::checked_sub
.
impl SubAssign<Duration> for Instant
impl SubAssign<Duration> for SystemTime
impl<'o> SubAssign<&'o f32> for Float<f32>
_float_f32
only.impl<'o> SubAssign<&'o f64> for Float<f64>
_float_f64
only.impl<'o> SubAssign<&'o i8> for Int<i8>
_int_i8
only.impl<'o> SubAssign<&'o i16> for Int<i16>
_int_i16
only.impl<'o> SubAssign<&'o i32> for Int<i32>
_int_i32
only.impl<'o> SubAssign<&'o i64> for Int<i64>
_int_i64
only.impl<'o> SubAssign<&'o i128> for Int<i128>
_int_i128
only.impl<'o> SubAssign<&'o isize> for Int<isize>
_int_isize
only.impl<'o> SubAssign<&'o u8> for Int<u8>
_int_i8
only.impl<'o> SubAssign<&'o u16> for Int<u16>
_int_u16
only.impl<'o> SubAssign<&'o u32> for Int<u32>
_int_u32
only.impl<'o> SubAssign<&'o u64> for Int<u64>
_int_u64
only.impl<'o> SubAssign<&'o u128> for Int<u128>
_int_u128
only.impl<'o> SubAssign<&'o usize> for Int<usize>
_int_usize
only.impl<'o> SubAssign<&'o Float<f32>> for Float<f32>
_float_f32
only.impl<'o> SubAssign<&'o Float<f64>> for Float<f64>
_float_f64
only.impl<'o> SubAssign<&'o Int<i8>> for Int<i8>
_int_i8
only.impl<'o> SubAssign<&'o Int<i16>> for Int<i16>
_int_i16
only.impl<'o> SubAssign<&'o Int<i32>> for Int<i32>
_int_i32
only.impl<'o> SubAssign<&'o Int<i64>> for Int<i64>
_int_i64
only.impl<'o> SubAssign<&'o Int<i128>> for Int<i128>
_int_i128
only.impl<'o> SubAssign<&'o Int<isize>> for Int<isize>
_int_isize
only.impl<'o> SubAssign<&'o Int<u8>> for Int<u8>
_int_i8
only.impl<'o> SubAssign<&'o Int<u16>> for Int<u16>
_int_u16
only.impl<'o> SubAssign<&'o Int<u32>> for Int<u32>
_int_u32
only.impl<'o> SubAssign<&'o Int<u64>> for Int<u64>
_int_u64
only.impl<'o> SubAssign<&'o Int<u128>> for Int<u128>
_int_u128
only.impl<'o> SubAssign<&'o Int<usize>> for Int<usize>
_int_usize
only.impl<T, S, A> SubAssign<&HashSet<T, S, A>> for HashSet<T, S, A>
impl<T, U, const N: usize> SubAssign<U> for Simd<T, N>
impl<T: Clone + Sub<Output = T>> SubAssign<&VecVector<T>> for VecVector<T>
alg
only.impl<T: Clone + Sub<Output = T>, const D: usize> SubAssign<&Vector<T, D>> for Vector<T, D>
alg
only.