Method lrs::num::Wsize::checked_add

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

Syntax

impl Wsize {
    fn checked_add(self, other: usize) -> Option<Wsize>
}

Arguments

NameDescription
other

The integer that will be added to this one.

Return value

Returns the sum if no overflow occurred, None otherwise.