Struct x11rb_protocol::protocol::xproto::KeyButMask
source · [−]pub struct KeyButMask(_);
Implementations
sourceimpl KeyButMask
impl KeyButMask
pub const SHIFT: Self = Self(1 << 0)
pub const LOCK: Self = Self(1 << 1)
pub const CONTROL: Self = Self(1 << 2)
pub const MOD1: Self = Self(1 << 3)
pub const MOD2: Self = Self(1 << 4)
pub const MOD3: Self = Self(1 << 5)
pub const MOD4: Self = Self(1 << 6)
pub const MOD5: Self = Self(1 << 7)
pub const BUTTON1: Self = Self(1 << 8)
pub const BUTTON2: Self = Self(1 << 9)
pub const BUTTON3: Self = Self(1 << 10)
pub const BUTTON4: Self = Self(1 << 11)
pub const BUTTON5: Self = Self(1 << 12)
Trait Implementations
sourceimpl BitOr<KeyButMask> for KeyButMask
impl BitOr<KeyButMask> for KeyButMask
sourceimpl BitOr<KeyButMask> for u16
impl BitOr<KeyButMask> for u16
type Output = KeyButMask
type Output = KeyButMask
The resulting type after applying the |
operator.
sourcefn bitor(self, other: KeyButMask) -> Self::Output
fn bitor(self, other: KeyButMask) -> Self::Output
Performs the |
operation. Read more
sourceimpl BitOr<u16> for KeyButMask
impl BitOr<u16> for KeyButMask
sourceimpl BitOrAssign<KeyButMask> for u16
impl BitOrAssign<KeyButMask> for u16
sourcefn bitor_assign(&mut self, other: KeyButMask)
fn bitor_assign(&mut self, other: KeyButMask)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<u16> for KeyButMask
impl BitOrAssign<u16> for KeyButMask
sourcefn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the |=
operation. Read more
sourceimpl Clone for KeyButMask
impl Clone for KeyButMask
sourcefn clone(&self) -> KeyButMask
fn clone(&self) -> KeyButMask
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyButMask
impl Debug for KeyButMask
sourceimpl Default for KeyButMask
impl Default for KeyButMask
sourcefn default() -> KeyButMask
fn default() -> KeyButMask
Returns the “default value” for a type. Read more
sourceimpl From<KeyButMask> for u16
impl From<KeyButMask> for u16
sourcefn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
sourceimpl From<KeyButMask> for Option<u16>
impl From<KeyButMask> for Option<u16>
sourcefn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
sourceimpl From<KeyButMask> for u32
impl From<KeyButMask> for u32
sourcefn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
sourceimpl From<KeyButMask> for Option<u32>
impl From<KeyButMask> for Option<u32>
sourcefn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for KeyButMask
impl From<u16> for KeyButMask
sourceimpl From<u8> for KeyButMask
impl From<u8> for KeyButMask
sourceimpl Hash for KeyButMask
impl Hash for KeyButMask
sourceimpl Ord for KeyButMask
impl Ord for KeyButMask
sourceimpl PartialEq<KeyButMask> for KeyButMask
impl PartialEq<KeyButMask> for KeyButMask
sourcefn eq(&self, other: &KeyButMask) -> bool
fn eq(&self, other: &KeyButMask) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KeyButMask) -> bool
fn ne(&self, other: &KeyButMask) -> bool
This method tests for !=
.
sourceimpl PartialOrd<KeyButMask> for KeyButMask
impl PartialOrd<KeyButMask> for KeyButMask
sourcefn partial_cmp(&self, other: &KeyButMask) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyButMask) -> 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 KeyButMask
impl Eq for KeyButMask
impl StructuralEq for KeyButMask
impl StructuralPartialEq for KeyButMask
Auto Trait Implementations
impl RefUnwindSafe for KeyButMask
impl Send for KeyButMask
impl Sync for KeyButMask
impl Unpin for KeyButMask
impl UnwindSafe for KeyButMask
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