std.ops.Subtract
Subtract[T, R]
The binary -
operator.
This trait is generic as types may wish to customise the type on the right-hand side of the operator.
Required methods
-
Show source codeHide source code
fn pub -(other: ref T) -> R
fn pub -(other: ref T) -> R
Subtracts the given object from self
.
Implementations
Float
impl Subtract[Float, Float] for Float
Int
impl Subtract[Int, Int] for Int
DateTime
impl Subtract[Duration, DateTime] for DateTime
Duration
impl Subtract[Duration, Duration] for Duration
Instant
impl Subtract[Duration, Instant] for Instant