[][src]Struct breadx::auto::xproto::ModMask

#[repr(transparent)]pub struct ModMask {
    pub inner: u16,
}

Fields

inner: u16

Implementations

impl ModMask[src]

pub fn shift(&self) -> bool[src]

pub fn set_shift(&mut self, val: bool) -> &mut Self[src]

pub fn lock(&self) -> bool[src]

pub fn set_lock(&mut self, val: bool) -> &mut Self[src]

pub fn control(&self) -> bool[src]

pub fn set_control(&mut self, val: bool) -> &mut Self[src]

pub fn One(&self) -> bool[src]

pub fn set_One(&mut self, val: bool) -> &mut Self[src]

pub fn Two(&self) -> bool[src]

pub fn set_Two(&mut self, val: bool) -> &mut Self[src]

pub fn Three(&self) -> bool[src]

pub fn set_Three(&mut self, val: bool) -> &mut Self[src]

pub fn Four(&self) -> bool[src]

pub fn set_Four(&mut self, val: bool) -> &mut Self[src]

pub fn Five(&self) -> bool[src]

pub fn set_Five(&mut self, val: bool) -> &mut Self[src]

pub fn any(&self) -> bool[src]

pub fn set_any(&mut self, val: bool) -> &mut Self[src]

pub fn new(
    shift: bool,
    lock: bool,
    control: bool,
    One: bool,
    Two: bool,
    Three: bool,
    Four: bool,
    Five: bool,
    any: bool
) -> Self
[src]

pub fn count_ones(&self) -> usize[src]

pub const SHIFT: Self[src]

pub const LOCK: Self[src]

pub const CONTROL: Self[src]

pub const ONE: Self[src]

pub const TWO: Self[src]

pub const THREE: Self[src]

pub const FOUR: Self[src]

pub const FIVE: Self[src]

pub const ANY: Self[src]

pub const COMPLETE: Self[src]

Trait Implementations

impl AsByteSequence for ModMask[src]

impl BitAnd<ModMask> for ModMask[src]

type Output = ModMask

The resulting type after applying the & operator.

impl BitOr<ModMask> for ModMask[src]

type Output = ModMask

The resulting type after applying the | operator.

impl BitXor<ModMask> for ModMask[src]

type Output = ModMask

The resulting type after applying the ^ operator.

impl Clone for ModMask[src]

impl Copy for ModMask[src]

impl Debug for ModMask[src]

impl Default for ModMask[src]

impl Eq for ModMask[src]

impl Not for ModMask[src]

type Output = ModMask

The resulting type after applying the ! operator.

impl Ord for ModMask[src]

impl PartialEq<ModMask> for ModMask[src]

impl PartialOrd<ModMask> for ModMask[src]

impl StructuralEq for ModMask[src]

impl StructuralPartialEq for ModMask[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.