Method lrs::num::W32::checked_sub

Subtracts another integer from this one and returns the value if no overflow occurred.

Syntax

impl W32 {
    fn checked_sub(self, other: u32) -> Option<W32>
}

Arguments

NameDescription
other

The integer that will be subtracted from this one.

Return value

Returns the difference if no overflow occurred, None otherwise.