Skip to main content

borrowing_sub_u64

Function borrowing_sub_u64 

Source
pub const fn borrowing_sub_u64(
    lhs: u64,
    rhs: u64,
    borrow: Choice,
) -> (u64, Choice)
Expand description

Subtract rhs and an incoming borrow from lhs.

Returns the wrapping difference and Choice::TRUE if the subtraction underflows. The incoming borrow subtracts one when true and zero when false.