Trait bit_reverse::BitwiseReverse
[−]
[src]
pub trait BitwiseReverse<T> {
fn swap_bits(self) -> T;
}Computes bit reversal by going bit by bit and setting the reverse position bit for the output.
Required Methods
fn swap_bits(self) -> T
Swaps the bits such that bit i is now bit N-i, where N is the length of the T in bits.
Implementors
impl BitwiseReverse<u8> for u8impl BitwiseReverse<u16> for u16impl BitwiseReverse<u32> for u32impl BitwiseReverse<u64> for u64impl BitwiseReverse<usize> for usizeimpl BitwiseReverse<i8> for i8impl BitwiseReverse<i16> for i16impl BitwiseReverse<i32> for i32impl BitwiseReverse<i64> for i64impl BitwiseReverse<isize> for isize