pub struct ModMask(_);
Implementations
sourceimpl ModMask
impl ModMask
pub const SHIFT: Self = Self(1 << 0)
pub const LOCK: Self = Self(1 << 1)
pub const CONTROL: Self = Self(1 << 2)
pub const M1: Self = Self(1 << 3)
pub const M2: Self = Self(1 << 4)
pub const M3: Self = Self(1 << 5)
pub const M4: Self = Self(1 << 6)
pub const M5: Self = Self(1 << 7)
pub const ANY: Self = Self(1 << 15)
Trait Implementations
sourceimpl BitOrAssign<ModMask> for u16
impl BitOrAssign<ModMask> for u16
sourcefn bitor_assign(&mut self, other: ModMask)
fn bitor_assign(&mut self, other: ModMask)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<u16> for ModMask
impl BitOrAssign<u16> for ModMask
sourcefn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the |=
operation. Read more
sourceimpl Ord for ModMask
impl Ord for ModMask
sourceimpl PartialOrd<ModMask> for ModMask
impl PartialOrd<ModMask> for ModMask
sourcefn partial_cmp(&self, other: &ModMask) -> Option<Ordering>
fn partial_cmp(&self, other: &ModMask) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ModMask
impl Eq for ModMask
impl StructuralEq for ModMask
impl StructuralPartialEq for ModMask
Auto Trait Implementations
impl RefUnwindSafe for ModMask
impl Send for ModMask
impl Sync for ModMask
impl Unpin for ModMask
impl UnwindSafe for ModMask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more