Struct x11rb_protocol::protocol::xproto::KeyButMask
source · pub struct KeyButMask(/* private fields */);
Implementations§
source§impl KeyButMask
impl KeyButMask
pub const SHIFT: Self = _
pub const LOCK: Self = _
pub const CONTROL: Self = _
pub const MOD1: Self = _
pub const MOD2: Self = _
pub const MOD3: Self = _
pub const MOD4: Self = _
pub const MOD5: Self = _
pub const BUTTON1: Self = _
pub const BUTTON2: Self = _
pub const BUTTON3: Self = _
pub const BUTTON4: Self = _
pub const BUTTON5: Self = _
source§impl KeyButMask
impl KeyButMask
sourcepub fn contains(self, flag: impl Into<u16>) -> bool
pub fn contains(self, flag: impl Into<u16>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
sourcepub fn intersects(self, flag: impl Into<u16>) -> bool
pub fn intersects(self, flag: impl Into<u16>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
Trait Implementations§
source§impl BitAnd<KeyButMask> for u16
impl BitAnd<KeyButMask> for u16
§type Output = KeyButMask
type Output = KeyButMask
The resulting type after applying the
&
operator.source§impl BitAnd<u16> for KeyButMask
impl BitAnd<u16> for KeyButMask
source§impl BitAnd for KeyButMask
impl BitAnd for KeyButMask
source§impl BitAndAssign<KeyButMask> for u16
impl BitAndAssign<KeyButMask> for u16
source§fn bitand_assign(&mut self, other: KeyButMask)
fn bitand_assign(&mut self, other: KeyButMask)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u16> for KeyButMask
impl BitAndAssign<u16> for KeyButMask
source§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&=
operation. Read moresource§impl BitAndAssign for KeyButMask
impl BitAndAssign for KeyButMask
source§fn bitand_assign(&mut self, other: KeyButMask)
fn bitand_assign(&mut self, other: KeyButMask)
Performs the
&=
operation. Read moresource§impl BitOr<KeyButMask> for u16
impl BitOr<KeyButMask> for u16
§type Output = KeyButMask
type Output = KeyButMask
The resulting type after applying the
|
operator.source§impl BitOr<u16> for KeyButMask
impl BitOr<u16> for KeyButMask
source§impl BitOr for KeyButMask
impl BitOr for KeyButMask
source§impl BitOrAssign<KeyButMask> for u16
impl BitOrAssign<KeyButMask> for u16
source§fn bitor_assign(&mut self, other: KeyButMask)
fn bitor_assign(&mut self, other: KeyButMask)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u16> for KeyButMask
impl BitOrAssign<u16> for KeyButMask
source§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|=
operation. Read moresource§impl BitOrAssign for KeyButMask
impl BitOrAssign for KeyButMask
source§fn bitor_assign(&mut self, other: KeyButMask)
fn bitor_assign(&mut self, other: KeyButMask)
Performs the
|=
operation. Read moresource§impl Clone for KeyButMask
impl Clone for KeyButMask
source§fn clone(&self) -> KeyButMask
fn clone(&self) -> KeyButMask
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyButMask
impl Debug for KeyButMask
source§impl Default for KeyButMask
impl Default for KeyButMask
source§fn default() -> KeyButMask
fn default() -> KeyButMask
Returns the “default value” for a type. Read more
source§impl From<KeyButMask> for Option<u16>
impl From<KeyButMask> for Option<u16>
source§fn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
source§impl From<KeyButMask> for Option<u32>
impl From<KeyButMask> for Option<u32>
source§fn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
source§impl From<KeyButMask> for u16
impl From<KeyButMask> for u16
source§fn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
source§impl From<KeyButMask> for u32
impl From<KeyButMask> for u32
source§fn from(input: KeyButMask) -> Self
fn from(input: KeyButMask) -> Self
Converts to this type from the input type.
source§impl From<u16> for KeyButMask
impl From<u16> for KeyButMask
source§impl From<u8> for KeyButMask
impl From<u8> for KeyButMask
source§impl Hash for KeyButMask
impl Hash for KeyButMask
source§impl Ord for KeyButMask
impl Ord for KeyButMask
source§fn cmp(&self, other: &KeyButMask) -> Ordering
fn cmp(&self, other: &KeyButMask) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for KeyButMask
impl PartialEq for KeyButMask
source§fn 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 ==
.source§impl PartialOrd for KeyButMask
impl PartialOrd for KeyButMask
source§fn partial_cmp(&self, other: &KeyButMask) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyButMask) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more