Function rustduino::math::rotate[][src]

pub fn rotate(b: u8, n: u8) -> u8
Expand description

Rotate the unsigned integer of 8 bits by n towards left and surrounding back with the overflowing bits.

Arguments

  • b - a u8, the number whose bits will be rotated.
  • n - a u8, by how many places bits are to be rotated.

Returns

  • a u8 - the bit-shifted number.