Struct kernel::arch::keyboard::keys::Bucky [−] [src]

pub struct Bucky {
    // some fields omitted
}

Methods

impl Bucky

fn empty() -> Bucky

Returns an empty set of flags.

fn all() -> Bucky

Returns the set containing all flags.

fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

fn from_bits(bits: u32) -> Option<Bucky>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: u32) -> Bucky

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: Bucky) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: Bucky) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: Bucky)

Inserts the specified flags in-place.

fn remove(&mut self, other: Bucky)

Removes the specified flags in-place.

fn toggle(&mut self, other: Bucky)

Toggles the specified flags in-place.

impl Bucky

fn set(&mut self, other: Bucky, set: bool)

Trait Implementations

impl Debug for Bucky

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for Bucky

type Output = Bucky

fn bitor(self, other: Bucky) -> Bucky

impl BitXor for Bucky

type Output = Bucky

fn bitxor(self, other: Bucky) -> Bucky

impl BitAnd for Bucky

type Output = Bucky

fn bitand(self, other: Bucky) -> Bucky

impl Sub for Bucky

type Output = Bucky

fn sub(self, other: Bucky) -> Bucky

impl Not for Bucky

type Output = Bucky

fn not(self) -> Bucky

Derived Implementations

impl Hash for Bucky

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for Bucky

fn cmp(&self, __arg_0: &Bucky) -> Ordering

impl PartialOrd for Bucky

fn partial_cmp(&self, __arg_0: &Bucky) -> Option<Ordering>

fn lt(&self, __arg_0: &Bucky) -> bool

fn le(&self, __arg_0: &Bucky) -> bool

fn gt(&self, __arg_0: &Bucky) -> bool

fn ge(&self, __arg_0: &Bucky) -> bool

impl Clone for Bucky

fn clone(&self) -> Bucky

fn clone_from(&mut self, source: &Self)

impl Eq for Bucky

impl PartialEq for Bucky

fn eq(&self, __arg_0: &Bucky) -> bool

fn ne(&self, __arg_0: &Bucky) -> bool

impl Copy for Bucky