Trait pretty_bit_mask::BitMaskable [] [src]

pub trait BitMaskable where
    Self: Copy + BitOrAssign + BitXorAssign + BitAndAssign + Not<Output = Self> + BitAnd<Self, Output = Self> + Eq
{ fn mask(&mut self, mask: Self);
fn flip(&mut self, mask: Self);
fn unmask(&mut self, mask: Self);
fn masked(self, mask: Self) -> bool; }

The trait describing things which can have bit masks applied to them. All integer types (and bool) implement this trait.

Required Methods

Applies a bit mask.

Flips the value of a bit mask.

Removes a bit mask.

Checks whether a certain mask is currently applied.

Implementors