Method lrs::num::W16::checked_add

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

Syntax

impl W16 {
    fn checked_add(self, other: u16) -> Option<W16>
}

Arguments

NameDescription
other

The integer that will be added to this one.

Return value

Returns the sum if no overflow occurred, None otherwise.