Method lrs::num::W8::checked_add

Adds another integer to this one and returns the value if no overflow occurred.

Syntax

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

Arguments

NameDescription
other

The integer that will be added to this one.

Return value

Returns the sum if no overflow occurred, None otherwise.