Search results

There are no results.

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 code
Hide source code
fn pub -(other: ref T) -> R
fn pub -(other: ref T) -> R

Subtracts the given object from self.

Implementations

std.float.

Float

impl Subtract[Float, Float] for Float
std.int.

Int

impl Subtract[Int, Int] for Int
std.time.

DateTime

impl Subtract[Duration, DateTime] for DateTime
std.time.

Duration

impl Subtract[Duration, Duration] for Duration
std.time.

Instant

impl Subtract[Duration, Instant] for Instant