pub open spec fn rotate_left(x: i8, n: u32) -> i8Expand description
{ if n % 8u32 == 0 { x } else { u8_specs::rotate_left(x as u8, n) as i8 } }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.