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
§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§
§impl Sub for KeyEventState
impl Sub for KeyEventState
type Output = KeyEventState
§impl Sub for KeyModifiers
impl Sub for KeyModifiers
type Output = KeyModifiers
§impl Sub for KeyboardEnhancementFlags
impl Sub for KeyboardEnhancementFlags
type Output = KeyboardEnhancementFlags
§impl Sub for Date
Computes the span of time between two dates.
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
.
§impl Sub for DateTime
Computes the span of time between two datetimes.
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.
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
.
§impl Sub for Time
Computes the span of time between two times.
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
.
§impl Sub for SignedDuration
impl Sub for SignedDuration
type Output = SignedDuration
§impl Sub for Timestamp
Computes the span of time between two timestamps.
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
.
§impl Sub for Offset
Computes the span of time between two offsets.
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).
§impl Sub for PlaybackRate
impl Sub for PlaybackRate
type Output = PlaybackRate
§impl Sub for devela::_dep::rustix::event::epoll::CreateFlags
impl Sub for devela::_dep::rustix::event::epoll::CreateFlags
type Output = CreateFlags
§impl Sub for EventfdFlags
impl Sub for EventfdFlags
type Output = EventfdFlags
§impl Sub for devela::_dep::rustix::fs::inotify::CreateFlags
impl Sub for devela::_dep::rustix::fs::inotify::CreateFlags
type Output = CreateFlags
§impl Sub for WatchFlags
impl Sub for WatchFlags
type Output = WatchFlags
§impl Sub for FallocateFlags
impl Sub for FallocateFlags
type Output = FallocateFlags
§impl Sub for MemfdFlags
impl Sub for MemfdFlags
type Output = MemfdFlags
§impl Sub for MountFlags
impl Sub for MountFlags
type Output = MountFlags
§impl Sub for MountPropagationFlags
impl Sub for MountPropagationFlags
type Output = MountPropagationFlags
§impl Sub for RenameFlags
impl Sub for RenameFlags
type Output = RenameFlags
§impl Sub for ResolveFlags
impl Sub for ResolveFlags
type Output = ResolveFlags
§impl Sub for StatVfsMountFlags
impl Sub for StatVfsMountFlags
type Output = StatVfsMountFlags
§impl Sub for StatxFlags
impl Sub for StatxFlags
type Output = StatxFlags
§impl Sub for UnmountFlags
impl Sub for UnmountFlags
type Output = UnmountFlags
§impl Sub for XattrFlags
impl Sub for XattrFlags
type Output = XattrFlags
§impl Sub for ReadWriteFlags
impl Sub for ReadWriteFlags
type Output = ReadWriteFlags
§impl Sub for EventFlags
impl Sub for EventFlags
type Output = EventFlags
§impl Sub for IoringAcceptFlags
impl Sub for IoringAcceptFlags
type Output = IoringAcceptFlags
§impl Sub for IoringAsyncCancelFlags
impl Sub for IoringAsyncCancelFlags
type Output = IoringAsyncCancelFlags
§impl Sub for IoringCqFlags
impl Sub for IoringCqFlags
type Output = IoringCqFlags
§impl Sub for IoringCqeFlags
impl Sub for IoringCqeFlags
type Output = IoringCqeFlags
§impl Sub for IoringEnterFlags
impl Sub for IoringEnterFlags
type Output = IoringEnterFlags
§impl Sub for IoringFeatureFlags
impl Sub for IoringFeatureFlags
type Output = IoringFeatureFlags
§impl Sub for IoringFsyncFlags
impl Sub for IoringFsyncFlags
type Output = IoringFsyncFlags
§impl Sub for IoringMsgringFlags
impl Sub for IoringMsgringFlags
type Output = IoringMsgringFlags
§impl Sub for IoringOpFlags
impl Sub for IoringOpFlags
type Output = IoringOpFlags
§impl Sub for IoringPollFlags
impl Sub for IoringPollFlags
type Output = IoringPollFlags
§impl Sub for IoringRecvFlags
impl Sub for IoringRecvFlags
type Output = IoringRecvFlags
§impl Sub for IoringRegisterFlags
impl Sub for IoringRegisterFlags
type Output = IoringRegisterFlags
§impl Sub for IoringRsrcFlags
impl Sub for IoringRsrcFlags
type Output = IoringRsrcFlags
§impl Sub for IoringSendFlags
impl Sub for IoringSendFlags
type Output = IoringSendFlags
§impl Sub for IoringSetupFlags
impl Sub for IoringSetupFlags
type Output = IoringSetupFlags
§impl Sub for IoringSqFlags
impl Sub for IoringSqFlags
type Output = IoringSqFlags
§impl Sub for IoringSqeFlags
impl Sub for IoringSqeFlags
type Output = IoringSqeFlags
§impl Sub for IoringTimeoutFlags
impl Sub for IoringTimeoutFlags
type Output = IoringTimeoutFlags
§impl Sub for RecvmsgOutFlags
impl Sub for RecvmsgOutFlags
type Output = RecvmsgOutFlags
§impl Sub for SocketFlags
impl Sub for SocketFlags
type Output = SocketFlags
§impl Sub for devela::_dep::rustix::io_uring::SpliceFlags
impl Sub for devela::_dep::rustix::io_uring::SpliceFlags
type Output = SpliceFlags
§impl Sub for MlockAllFlags
impl Sub for MlockAllFlags
type Output = MlockAllFlags
§impl Sub for MlockFlags
impl Sub for MlockFlags
type Output = MlockFlags
§impl Sub for MprotectFlags
impl Sub for MprotectFlags
type Output = MprotectFlags
§impl Sub for MremapFlags
impl Sub for MremapFlags
type Output = MremapFlags
§impl Sub for MsyncFlags
impl Sub for MsyncFlags
type Output = MsyncFlags
§impl Sub for UserfaultfdFlags
impl Sub for UserfaultfdFlags
type Output = UserfaultfdFlags
§impl Sub for FsMountFlags
impl Sub for FsMountFlags
type Output = FsMountFlags
§impl Sub for FsOpenFlags
impl Sub for FsOpenFlags
type Output = FsOpenFlags
§impl Sub for FsPickFlags
impl Sub for FsPickFlags
type Output = FsPickFlags
§impl Sub for MountAttrFlags
impl Sub for MountAttrFlags
type Output = MountAttrFlags
§impl Sub for MoveMountFlags
impl Sub for MoveMountFlags
type Output = MoveMountFlags
§impl Sub for OpenTreeFlags
impl Sub for OpenTreeFlags
type Output = OpenTreeFlags
§impl Sub for SockaddrXdpFlags
impl Sub for SockaddrXdpFlags
type Output = SockaddrXdpFlags
§impl Sub for XdpDescOptions
impl Sub for XdpDescOptions
type Output = XdpDescOptions
§impl Sub for XdpOptionsFlags
impl Sub for XdpOptionsFlags
type Output = XdpOptionsFlags
§impl Sub for XdpRingFlags
impl Sub for XdpRingFlags
type Output = XdpRingFlags
§impl Sub for XdpUmemRegFlags
impl Sub for XdpUmemRegFlags
type Output = XdpUmemRegFlags
§impl Sub for devela::_dep::rustix::pipe::SpliceFlags
impl Sub for devela::_dep::rustix::pipe::SpliceFlags
type Output = SpliceFlags
§impl Sub for FloatingPointEmulationControl
impl Sub for FloatingPointEmulationControl
§impl Sub for FloatingPointExceptionMode
impl Sub for FloatingPointExceptionMode
§impl Sub for MembarrierQuery
impl Sub for MembarrierQuery
type Output = MembarrierQuery
§impl Sub for PidfdFlags
impl Sub for PidfdFlags
type Output = PidfdFlags
§impl Sub for PidfdGetfdFlags
impl Sub for PidfdGetfdFlags
type Output = PidfdGetfdFlags
§impl Sub for SpeculationFeatureControl
impl Sub for SpeculationFeatureControl
type Output = SpeculationFeatureControl
§impl Sub for SpeculationFeatureState
impl Sub for SpeculationFeatureState
type Output = SpeculationFeatureState
§impl Sub for UnalignedAccessControl
impl Sub for UnalignedAccessControl
type Output = UnalignedAccessControl
§impl Sub for WaitOptions
impl Sub for WaitOptions
type Output = WaitOptions
§impl Sub for WaitidOptions
impl Sub for WaitidOptions
type Output = WaitidOptions
§impl Sub for OpenptFlags
impl Sub for OpenptFlags
type Output = OpenptFlags
§impl Sub for GetRandomFlags
impl Sub for GetRandomFlags
type Output = GetRandomFlags
§impl Sub for ControlModes
impl Sub for ControlModes
type Output = ControlModes
§impl Sub for InputModes
impl Sub for InputModes
type Output = InputModes
§impl Sub for LocalModes
impl Sub for LocalModes
type Output = LocalModes
§impl Sub for OutputModes
impl Sub for OutputModes
type Output = OutputModes
§impl Sub for CapabilitiesSecureBits
impl Sub for CapabilitiesSecureBits
type Output = CapabilitiesSecureBits
§impl Sub for CapabilityFlags
impl Sub for CapabilityFlags
type Output = CapabilityFlags
§impl Sub for TaggedAddressMode
impl Sub for TaggedAddressMode
type Output = TaggedAddressMode
§impl Sub for ThreadNameSpaceType
impl Sub for ThreadNameSpaceType
type Output = ThreadNameSpaceType
type Output = UnshareFlags
§impl Sub for TimerfdFlags
impl Sub for TimerfdFlags
type Output = TimerfdFlags
§impl Sub for TimerfdTimerFlags
impl Sub for TimerfdTimerFlags
type Output = TimerfdTimerFlags
1.74.0 · Source§impl Sub for Saturating<i8>
impl Sub for Saturating<i8>
type Output = Saturating<i8>
1.74.0 · Source§impl Sub for Saturating<i16>
impl Sub for Saturating<i16>
type Output = Saturating<i16>
1.74.0 · Source§impl Sub for Saturating<i32>
impl Sub for Saturating<i32>
type Output = Saturating<i32>
1.74.0 · Source§impl Sub for Saturating<i64>
impl Sub for Saturating<i64>
type Output = Saturating<i64>
1.74.0 · Source§impl Sub for Saturating<i128>
impl Sub for Saturating<i128>
type Output = Saturating<i128>
1.74.0 · Source§impl Sub for Saturating<isize>
impl Sub for Saturating<isize>
type Output = Saturating<isize>
1.74.0 · Source§impl Sub for Saturating<u8>
impl Sub for Saturating<u8>
type Output = Saturating<u8>
1.74.0 · Source§impl Sub for Saturating<u16>
impl Sub for Saturating<u16>
type Output = Saturating<u16>
1.74.0 · Source§impl Sub for Saturating<u32>
impl Sub for Saturating<u32>
type Output = Saturating<u32>
1.74.0 · Source§impl Sub for Saturating<u64>
impl Sub for Saturating<u64>
type Output = Saturating<u64>
1.74.0 · Source§impl Sub for Saturating<u128>
impl Sub for Saturating<u128>
type Output = Saturating<u128>
1.74.0 · Source§impl Sub for Saturating<usize>
impl Sub for Saturating<usize>
type Output = Saturating<usize>
1.74.0 · Source§impl Sub<&Saturating<i8>> for &Saturating<i8>
impl Sub<&Saturating<i8>> for &Saturating<i8>
1.74.0 · Source§impl Sub<&Saturating<i8>> for Saturating<i8>
impl Sub<&Saturating<i8>> for Saturating<i8>
1.74.0 · Source§impl Sub<&Saturating<i16>> for &Saturating<i16>
impl Sub<&Saturating<i16>> for &Saturating<i16>
1.74.0 · Source§impl Sub<&Saturating<i16>> for Saturating<i16>
impl Sub<&Saturating<i16>> for Saturating<i16>
1.74.0 · Source§impl Sub<&Saturating<i32>> for &Saturating<i32>
impl Sub<&Saturating<i32>> for &Saturating<i32>
1.74.0 · Source§impl Sub<&Saturating<i32>> for Saturating<i32>
impl Sub<&Saturating<i32>> for Saturating<i32>
1.74.0 · Source§impl Sub<&Saturating<i64>> for &Saturating<i64>
impl Sub<&Saturating<i64>> for &Saturating<i64>
1.74.0 · Source§impl Sub<&Saturating<i64>> for Saturating<i64>
impl Sub<&Saturating<i64>> for Saturating<i64>
1.74.0 · Source§impl Sub<&Saturating<i128>> for &Saturating<i128>
impl Sub<&Saturating<i128>> for &Saturating<i128>
1.74.0 · Source§impl Sub<&Saturating<i128>> for Saturating<i128>
impl Sub<&Saturating<i128>> for Saturating<i128>
1.74.0 · Source§impl Sub<&Saturating<isize>> for &Saturating<isize>
impl Sub<&Saturating<isize>> for &Saturating<isize>
1.74.0 · Source§impl Sub<&Saturating<isize>> for Saturating<isize>
impl Sub<&Saturating<isize>> for Saturating<isize>
1.74.0 · Source§impl Sub<&Saturating<u8>> for &Saturating<u8>
impl Sub<&Saturating<u8>> for &Saturating<u8>
1.74.0 · Source§impl Sub<&Saturating<u8>> for Saturating<u8>
impl Sub<&Saturating<u8>> for Saturating<u8>
1.74.0 · Source§impl Sub<&Saturating<u16>> for &Saturating<u16>
impl Sub<&Saturating<u16>> for &Saturating<u16>
1.74.0 · Source§impl Sub<&Saturating<u16>> for Saturating<u16>
impl Sub<&Saturating<u16>> for Saturating<u16>
1.74.0 · Source§impl Sub<&Saturating<u32>> for &Saturating<u32>
impl Sub<&Saturating<u32>> for &Saturating<u32>
1.74.0 · Source§impl Sub<&Saturating<u32>> for Saturating<u32>
impl Sub<&Saturating<u32>> for Saturating<u32>
1.74.0 · Source§impl Sub<&Saturating<u64>> for &Saturating<u64>
impl Sub<&Saturating<u64>> for &Saturating<u64>
1.74.0 · Source§impl Sub<&Saturating<u64>> for Saturating<u64>
impl Sub<&Saturating<u64>> for Saturating<u64>
1.74.0 · Source§impl Sub<&Saturating<u128>> for &Saturating<u128>
impl Sub<&Saturating<u128>> for &Saturating<u128>
1.74.0 · Source§impl Sub<&Saturating<u128>> for Saturating<u128>
impl Sub<&Saturating<u128>> for Saturating<u128>
1.74.0 · Source§impl Sub<&Saturating<usize>> for &Saturating<usize>
impl Sub<&Saturating<usize>> for &Saturating<usize>
1.74.0 · Source§impl Sub<&Saturating<usize>> for Saturating<usize>
impl Sub<&Saturating<usize>> for Saturating<usize>
§impl Sub<SignedDuration> for Date
Subtracts a signed duration of time from a date.
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
.
§impl Sub<SignedDuration> for DateTime
Subtracts a signed duration of time from a datetime.
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.
impl Sub<SignedDuration> for Time
Subtracts a signed duration of time. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_sub
.
§impl Sub<SignedDuration> for Timestamp
Subtracts a signed duration of time from a timestamp.
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.
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.
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
.
§impl Sub<Span> for DateTime
Subtracts a span of time from a datetime.
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.
impl Sub<Span> for Time
Subtracts a span of time. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_sub
.
§impl Sub<Span> for Timestamp
Subtracts a span of time from a timestamp.
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.
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<Duration> for Date
Subtracts an unsigned duration of time from a date.
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
.
§impl Sub<Duration> for DateTime
Subtracts an unsigned duration of time from a datetime.
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.
impl Sub<Duration> for Time
Subtracts an unsigned duration of time. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_sub
.
§impl Sub<Duration> for Timestamp
Subtracts an unsigned duration of time from a timestamp.
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.
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 SystemTime
impl Sub<Duration> for SystemTime
type Output = SystemTime
§impl<'a> Sub for &'a Zoned
Computes the span of time between two zoned datetimes.
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 days), this will never panic or fail in any way.
To configure the largest unit or enable rounding, use Zoned::since
.
§impl<'a> Sub<SignedDuration> for &'a Zoned
Subtracts a signed duration of time from a zoned datetime.
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.
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.
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>
impl<'a> Sub<Saturating<i8>> for &'a Saturating<i8>
1.74.0 · Source§impl<'a> Sub<Saturating<i16>> for &'a Saturating<i16>
impl<'a> Sub<Saturating<i16>> for &'a Saturating<i16>
1.74.0 · Source§impl<'a> Sub<Saturating<i32>> for &'a Saturating<i32>
impl<'a> Sub<Saturating<i32>> for &'a Saturating<i32>
1.74.0 · Source§impl<'a> Sub<Saturating<i64>> for &'a Saturating<i64>
impl<'a> Sub<Saturating<i64>> for &'a Saturating<i64>
1.74.0 · Source§impl<'a> Sub<Saturating<i128>> for &'a Saturating<i128>
impl<'a> Sub<Saturating<i128>> for &'a Saturating<i128>
1.74.0 · Source§impl<'a> Sub<Saturating<isize>> for &'a Saturating<isize>
impl<'a> Sub<Saturating<isize>> for &'a Saturating<isize>
1.74.0 · Source§impl<'a> Sub<Saturating<u8>> for &'a Saturating<u8>
impl<'a> Sub<Saturating<u8>> for &'a Saturating<u8>
1.74.0 · Source§impl<'a> Sub<Saturating<u16>> for &'a Saturating<u16>
impl<'a> Sub<Saturating<u16>> for &'a Saturating<u16>
1.74.0 · Source§impl<'a> Sub<Saturating<u32>> for &'a Saturating<u32>
impl<'a> Sub<Saturating<u32>> for &'a Saturating<u32>
1.74.0 · Source§impl<'a> Sub<Saturating<u64>> for &'a Saturating<u64>
impl<'a> Sub<Saturating<u64>> for &'a Saturating<u64>
1.74.0 · Source§impl<'a> Sub<Saturating<u128>> for &'a Saturating<u128>
impl<'a> Sub<Saturating<u128>> for &'a Saturating<u128>
1.74.0 · Source§impl<'a> Sub<Saturating<usize>> for &'a Saturating<usize>
impl<'a> Sub<Saturating<usize>> for &'a Saturating<usize>
Source§impl<'s, 'o> Sub<&'o Float<f32>> for &'s Float<f32>
Available on crate feature _float_f32
only.
impl<'s, 'o> Sub<&'o Float<f32>> for &'s Float<f32>
_float_f32
only.Source§impl<'s, 'o> Sub<&'o Float<f64>> for &'s Float<f64>
Available on crate feature _float_f64
only.
impl<'s, 'o> Sub<&'o Float<f64>> for &'s Float<f64>
_float_f64
only.Source§impl<'s, 'o> Sub<&'o Int<isize>> for &'s Int<isize>
Available on crate feature _int_isize
only.
impl<'s, 'o> Sub<&'o Int<isize>> for &'s Int<isize>
_int_isize
only.Source§impl<'s, 'o> Sub<&'o Int<usize>> for &'s Int<usize>
Available on crate feature _int_usize
only.
impl<'s, 'o> Sub<&'o Int<usize>> for &'s Int<usize>
_int_usize
only.Source§impl<T: Clone + Sub<Output = T>, const D: usize> Sub for Vector<T, D>
Available on crate feature alg
only.
impl<T: Clone + Sub<Output = T>, const D: usize> Sub for Vector<T, D>
alg
only.