Subtract

protocol Subtract<RHS>

Defines the - operator with independent right-hand and result types.

Concrete integer conformances use the language's trapping arithmetic contract; wrapping or checked behavior is exposed by explicit Int methods instead.

Methods

func minus(_ rhs: RHS) -> Ret

Subtracts the right-hand operand from this value.

View Source
func minus(_ rhs: RHS) -> Ret