BitwiseLsb

Trait BitwiseLsb 

Source
pub trait BitwiseLsb<Rhs = bool> {
    type Output;

    // Required methods
    fn and_lsb(self, n: u8, rhs: Rhs) -> Self::Output;
    fn or_lsb(self, n: u8, rhs: Rhs) -> Self::Output;
    fn xor_lsb(self, n: u8, rhs: Rhs) -> Self::Output;
}
Expand description

Bitwise & (and), | (or) and ^ (xor) operations on the Lsb bits of self.

Required Associated Types§

Required Methods§

Source

fn and_lsb(self, n: u8, rhs: Rhs) -> Self::Output

Source

fn or_lsb(self, n: u8, rhs: Rhs) -> Self::Output

Source

fn xor_lsb(self, n: u8, rhs: Rhs) -> Self::Output

Implementations on Foreign Types§

Source§

impl BitwiseLsb for u8

Source§

type Output = u8

Source§

fn and_lsb(self, n: u8, rhs: bool) -> Self::Output

Source§

fn or_lsb(self, n: u8, rhs: bool) -> Self::Output

Source§

fn xor_lsb(self, n: u8, rhs: bool) -> Self::Output

Source§

impl BitwiseLsb<u8> for u8

Source§

type Output = u8

Source§

fn and_lsb(self, n: u8, rhs: u8) -> Self::Output

Source§

fn or_lsb(self, n: u8, rhs: u8) -> Self::Output

Source§

fn xor_lsb(self, n: u8, rhs: u8) -> Self::Output

Implementors§