ParallelReverse

Trait ParallelReverse 

Source
pub trait ParallelReverse {
    // Required method
    fn swap_bits(self) -> Self;
}
Expand description

Computes bit reversal by using a divide and conquer approach. Pairs of bits are swapped. Then neighboring bit pairs are swapped. Each time swapping the next largest group of bits. This is done until the entire data has been bit reversed.

Required Methods§

Source

fn swap_bits(self) -> Self

Swaps the bits such that bit i is now bit N-i, where N is the length of the T in bits.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ParallelReverse for i8

Source§

fn swap_bits(self) -> i8

Source§

impl ParallelReverse for i16

Source§

impl ParallelReverse for i32

Source§

impl ParallelReverse for i64

Source§

impl ParallelReverse for isize

Source§

impl ParallelReverse for u8

Source§

fn swap_bits(self) -> u8

Source§

impl ParallelReverse for u16

Source§

impl ParallelReverse for u32

Source§

impl ParallelReverse for u64

Source§

impl ParallelReverse for usize

Implementors§