Trait BitwiseReverse

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

Computes bit reversal by going bit by bit and setting the reverse position bit for the output.

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 BitwiseReverse for i8

Source§

fn swap_bits(self) -> i8

Source§

impl BitwiseReverse for i16

Source§

impl BitwiseReverse for i32

Source§

impl BitwiseReverse for i64

Source§

impl BitwiseReverse for isize

Source§

impl BitwiseReverse for u8

Source§

fn swap_bits(self) -> u8

Source§

impl BitwiseReverse for u16

Source§

impl BitwiseReverse for u32

Source§

impl BitwiseReverse for u64

Source§

impl BitwiseReverse for usize

Implementors§