Method lrs::num::W8::checked_sub

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

Syntax

impl W8 {
    fn checked_sub(self, other: u8) -> Option<W8>
}

Arguments

NameDescription
other

The integer that will be subtracted from this one.

Return value

Returns the difference if no overflow occurred, None otherwise.