Method lrs::num::W64::checked_add

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

Syntax

impl W64 {
    fn checked_add(self, other: u64) -> Option<W64>
}

Arguments

NameDescription
other

The integer that will be added to this one.

Return value

Returns the sum if no overflow occurred, None otherwise.