Skip to main content

checked_add

Function checked_add 

Source
pub fn checked_add<T: UnsignedPrimInt>(left: T, right: T) -> Option<T>
Expand description

Add the specified value to the integer, returning None if overflow occurs.