Search results

There are no results.

std.ops.Add

Add[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

Adds the given object to self.

Implementations

std.float.

Float

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

Int

impl Add[Int, Int] for Int
std.string.

String

impl Add[String, String] for String
std.time.

DateTime

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

Duration

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

Instant

impl Add[Duration, Instant] for Instant