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 u8
impl BitwiseReverse<u16> for u16
impl BitwiseReverse<u32> for u32
impl BitwiseReverse<u64> for u64
impl BitwiseReverse<usize> for usize
impl BitwiseReverse<i8> for i8
impl BitwiseReverse<i16> for i16
impl BitwiseReverse<i32> for i32
impl BitwiseReverse<i64> for i64
impl BitwiseReverse<isize> for isize