Function snapps_txn_reference_impl::party::wrapping_add_signed[][src]

pub fn wrapping_add_signed(x: u64, y: SignedAmount) -> u64
Expand description

Add a SignedAmount to a u64.

If the sign of y is Positive, this must return a (wrapping) add of x and y.magnitude. Otherwise, this must