Skip to main content

checked_sub

Function checked_sub 

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

Subtract the specified value from the integer, returning None if overflow occurs.