Trait

AdditiveArithmetic

A type whose instances support addition and subtraction.

Members

Functions

fun +(_ other: Self) -> Self

Returns the sum of self and other.

fun +=(_ other: Self) { inout }

Writes the sum of self and other to self.

fun -(_ other: Self) -> Self

Returns self subtracted by other.

fun -=(_ other: Self) { inout }

Writes the result of self subtracted by other to self.

static fun zero() -> Self

Returns the value 0 represented in Self.