BitwisePartial

Trait BitwisePartial 

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

    // Required methods
    fn and_partial(self, start: u8, len: u8, rhs: Rhs) -> Self::Output;
    fn or_partial(self, start: u8, len: u8, rhs: Rhs) -> Self::Output;
    fn xor_partial(self, start: u8, len: u8, rhs: Rhs) -> Self::Output;
}
Expand description

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

Required Associated Types§

Required Methods§

Source

fn and_partial(self, start: u8, len: u8, rhs: Rhs) -> Self::Output

Source

fn or_partial(self, start: u8, len: u8, rhs: Rhs) -> Self::Output

Source

fn xor_partial(self, start: u8, len: u8, rhs: Rhs) -> Self::Output

Implementations on Foreign Types§

Source§

impl BitwisePartial for u8

Source§

type Output = u8

Source§

fn and_partial(self, start: u8, len: u8, rhs: bool) -> Self::Output

Source§

fn or_partial(self, start: u8, len: u8, rhs: bool) -> Self::Output

Source§

fn xor_partial(self, start: u8, len: u8, rhs: bool) -> Self::Output

Source§

impl BitwisePartial<u8> for u8

Source§

type Output = u8

Source§

fn and_partial(self, start: u8, len: u8, rhs: u8) -> Self::Output

Source§

fn or_partial(self, start: u8, len: u8, rhs: u8) -> Self::Output

Source§

fn xor_partial(self, start: u8, len: u8, rhs: u8) -> Self::Output

Implementors§