pub fn reverse(input: u32, range: impl RangeBounds<u32>) -> u32Expand description
Returns the input where bits in the range are reversed.
For example:
abcdefghiABCDEFjkmlmnopqrtuvwxyz
becomes
abcdefghiFEDCBAjklmnopqrstuvwxyz
for the range specified as: 17..23 or 17..=22.