Trait deepmesa_collections::bitvec::traits::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

§

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

§

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§