pub open spec fn rotate_left(x: i16, n: u32) -> i16Expand description
{ if n % 16u32 == 0 { x } else { u16_specs::rotate_left(x as u16, n) as i16 } }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.