pub open spec fn rotate_left(x: isize, n: u32) -> isizeExpand description
{
if n % usize::BITS == 0 {
x
} else {
usize_specs::rotate_left(x as usize, n) as isize
}
}Rotates the two’s-complement bits of x, as the unsigned
rotate_left does. A rotation by a multiple of BITS is x
directly, so that case needs no reasoning about the casts.