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 codeHide source code
fn pub +(other: ref T) -> R
fn pub +(other: ref T) -> R
Adds the given object to self
.
Implementations
Float
impl Add[Float, Float] for Float
Int
impl Add[Int, Int] for Int
String
impl Add[String, String] for String
DateTime
impl Add[Duration, DateTime] for DateTime
Duration
impl Add[Duration, Duration] for Duration
Instant
impl Add[Duration, Instant] for Instant