Struct x11rb_protocol::protocol::xproto::KB
source · pub struct KB(/* private fields */);
Implementations§
source§impl KB
impl KB
pub const KEY_CLICK_PERCENT: Self = _
pub const BELL_PERCENT: Self = _
pub const BELL_PITCH: Self = _
pub const BELL_DURATION: Self = _
pub const LED: Self = _
pub const LED_MODE: Self = _
pub const KEY: Self = _
pub const AUTO_REPEAT_MODE: Self = _
source§impl KB
impl KB
sourcepub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> 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<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> 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 BitAndAssign<KB> for u32
impl BitAndAssign<KB> for u32
source§fn bitand_assign(&mut self, other: KB)
fn bitand_assign(&mut self, other: KB)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u32> for KB
impl BitAndAssign<u32> for KB
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for KB
impl BitAndAssign for KB
source§fn bitand_assign(&mut self, other: KB)
fn bitand_assign(&mut self, other: KB)
Performs the
&=
operation. Read moresource§impl BitOrAssign<KB> for u32
impl BitOrAssign<KB> for u32
source§fn bitor_assign(&mut self, other: KB)
fn bitor_assign(&mut self, other: KB)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u32> for KB
impl BitOrAssign<u32> for KB
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for KB
impl BitOrAssign for KB
source§fn bitor_assign(&mut self, other: KB)
fn bitor_assign(&mut self, other: KB)
Performs the
|=
operation. Read moresource§impl<'de> Deserialize<'de> for KB
impl<'de> Deserialize<'de> for KB
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for KB
impl Ord for KB
source§impl PartialOrd for KB
impl PartialOrd for KB
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 KB
impl Eq for KB
impl StructuralPartialEq for KB
Auto Trait Implementations§
impl Freeze for KB
impl RefUnwindSafe for KB
impl Send for KB
impl Sync for KB
impl Unpin for KB
impl UnwindSafe for KB
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