Trait deepmesa_collections::bitvec::traits::BitwiseMsb

source ·
pub trait BitwiseMsb<Rhs = bool> {
    type Output;

    // Required methods
    fn and_msb(self, n: u8, rhs: Rhs) -> Self::Output;
    fn or_msb(self, n: u8, rhs: Rhs) -> Self::Output;
    fn xor_msb(self, n: u8, rhs: Rhs) -> Self::Output;
}
Expand description

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

Required Associated Types§

Required Methods§

source

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

source

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

source

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

Implementations on Foreign Types§

source§

impl BitwiseMsb for u8

§

type Output = u8

source§

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

source§

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

source§

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

source§

impl BitwiseMsb<u8> for u8

§

type Output = u8

source§

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

source§

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

source§

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

Implementors§