Skip to main content

borrowing_sub_u32

Function borrowing_sub_u32 

Source
pub const fn borrowing_sub_u32(
    lhs: u32,
    rhs: u32,
    borrow: Choice,
) -> (u32, 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.