wrapping_sub

Function wrapping_sub 

Source
pub open spec fn wrapping_sub(x: usize, y: usize) -> usize
Expand description
{
    if x - y < 0 {
        (x - y + (usize::MAX - usize::MIN + 1)) as usize
    } else {
        (x - y) as usize
    }
}