scoop:scoop.core:0.1.0
src/operators_assign.scoop
Selected production source · src/operators_assign.scoop
1
/**2
* The generic operator contract used for `a += b`. Operand and result types are chosen by the3
* implementation.4
*/5
public interface AddAssign<Rhs> {6
/**7
* Implements `a += b` for this receiver; domain restrictions and failure behavior belong to8
* the implementing type.9
*/10
public operator fun plusAssign(other: Rhs): Unit11
}13
/**14
* The generic operator contract used for `a -= b`. Operand and result types are chosen by the15
* implementation.16
*/17
public interface SubAssign<Rhs> {18
/**19
* Implements `a -= b` for this receiver; domain restrictions and failure behavior belong to20
* the implementing type.21
*/22
public operator fun minusAssign(other: Rhs): Unit23
}25
/**26
* The generic operator contract used for `a *= b`. Operand and result types are chosen by the27
* implementation.28
*/29
public interface MulAssign<Rhs> {30
/**31
* Implements `a *= b` for this receiver; domain restrictions and failure behavior belong to32
* the implementing type.33
*/34
public operator fun timesAssign(other: Rhs): Unit35
}37
/**38
* The generic operator contract used for `a /= b`. Operand and result types are chosen by the39
* implementation.40
*/41
public interface DivAssign<Rhs> {42
/**43
* Implements `a /= b` for this receiver; domain restrictions and failure behavior belong to44
* the implementing type.45
*/46
public operator fun divAssign(other: Rhs): Unit47
}49
/**50
* The generic operator contract used for `a %= b`. Operand and result types are chosen by the51
* implementation.52
*/53
public interface RemAssign<Rhs> {54
/**55
* Implements `a %= b` for this receiver; domain restrictions and failure behavior belong to56
* the implementing type.57
*/58
public operator fun remAssign(other: Rhs): Unit59
}