pub open spec fn wrapping_add_signed(x: u32, y: i32) -> u32Expand description
{
if x + y > <u32>::MAX {
(x + y - 0x1_0000_0000) as u32
} else if x + y < 0 {
(x + y + 0x1_0000_0000) as u32
} else {
(x + y) as u32
}
}