Struct x11rb::protocol::xkb::PerClientFlag
source · pub struct PerClientFlag(/* private fields */);
Implementations§
source§impl PerClientFlag
impl PerClientFlag
pub const DETECTABLE_AUTO_REPEAT: PerClientFlag = _
pub const GRABS_USE_XKB_STATE: PerClientFlag = _
pub const AUTO_RESET_CONTROLS: PerClientFlag = _
pub const LOOKUP_STATE_WHEN_GRABBED: PerClientFlag = _
pub const SEND_EVENT_USES_XKB_STATE: PerClientFlag = _
source§impl PerClientFlag
impl PerClientFlag
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.
sourcepub fn remove(self, flags: impl Into<u32>) -> PerClientFlag
pub fn remove(self, flags: impl Into<u32>) -> PerClientFlag
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
source§impl BitAnd<u32> for PerClientFlag
impl BitAnd<u32> for PerClientFlag
source§impl BitAnd for PerClientFlag
impl BitAnd for PerClientFlag
§type Output = PerClientFlag
type Output = PerClientFlag
The resulting type after applying the
&
operator.source§fn bitand(self, other: PerClientFlag) -> <PerClientFlag as BitAnd>::Output
fn bitand(self, other: PerClientFlag) -> <PerClientFlag as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u32> for PerClientFlag
impl BitAndAssign<u32> for PerClientFlag
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for PerClientFlag
impl BitAndAssign for PerClientFlag
source§fn bitand_assign(&mut self, other: PerClientFlag)
fn bitand_assign(&mut self, other: PerClientFlag)
Performs the
&=
operation. Read moresource§impl BitOr<u32> for PerClientFlag
impl BitOr<u32> for PerClientFlag
source§impl BitOr for PerClientFlag
impl BitOr for PerClientFlag
§type Output = PerClientFlag
type Output = PerClientFlag
The resulting type after applying the
|
operator.source§fn bitor(self, other: PerClientFlag) -> <PerClientFlag as BitOr>::Output
fn bitor(self, other: PerClientFlag) -> <PerClientFlag as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u32> for PerClientFlag
impl BitOrAssign<u32> for PerClientFlag
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for PerClientFlag
impl BitOrAssign for PerClientFlag
source§fn bitor_assign(&mut self, other: PerClientFlag)
fn bitor_assign(&mut self, other: PerClientFlag)
Performs the
|=
operation. Read moresource§impl Clone for PerClientFlag
impl Clone for PerClientFlag
source§fn clone(&self) -> PerClientFlag
fn clone(&self) -> PerClientFlag
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 PerClientFlag
impl Debug for PerClientFlag
source§impl Default for PerClientFlag
impl Default for PerClientFlag
source§fn default() -> PerClientFlag
fn default() -> PerClientFlag
Returns the “default value” for a type. Read more
source§impl From<u16> for PerClientFlag
impl From<u16> for PerClientFlag
source§fn from(value: u16) -> PerClientFlag
fn from(value: u16) -> PerClientFlag
Converts to this type from the input type.
source§impl From<u32> for PerClientFlag
impl From<u32> for PerClientFlag
source§fn from(value: u32) -> PerClientFlag
fn from(value: u32) -> PerClientFlag
Converts to this type from the input type.
source§impl From<u8> for PerClientFlag
impl From<u8> for PerClientFlag
source§fn from(value: u8) -> PerClientFlag
fn from(value: u8) -> PerClientFlag
Converts to this type from the input type.
source§impl Hash for PerClientFlag
impl Hash for PerClientFlag
source§impl Ord for PerClientFlag
impl Ord for PerClientFlag
source§fn cmp(&self, other: &PerClientFlag) -> Ordering
fn cmp(&self, other: &PerClientFlag) -> 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 PerClientFlag
impl PartialEq for PerClientFlag
source§fn eq(&self, other: &PerClientFlag) -> bool
fn eq(&self, other: &PerClientFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PerClientFlag
impl PartialOrd for PerClientFlag
source§fn partial_cmp(&self, other: &PerClientFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &PerClientFlag) -> 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 PerClientFlag
impl Eq for PerClientFlag
impl StructuralEq for PerClientFlag
impl StructuralPartialEq for PerClientFlag
Auto Trait Implementations§
impl RefUnwindSafe for PerClientFlag
impl Send for PerClientFlag
impl Sync for PerClientFlag
impl Unpin for PerClientFlag
impl UnwindSafe for PerClientFlag
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