Struct x11rb_protocol::protocol::xkb::PerClientFlag
source · pub struct PerClientFlag(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl PerClientFlag
impl PerClientFlag
pub const DETECTABLE_AUTO_REPEAT: Self = _
pub const GRABS_USE_XKB_STATE: Self = _
pub const AUTO_RESET_CONTROLS: Self = _
pub const LOOKUP_STATE_WHEN_GRABBED: Self = _
pub const SEND_EVENT_USES_XKB_STATE: Self = _
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.
Trait Implementations§
source§impl BitAnd<PerClientFlag> for u32
impl BitAnd<PerClientFlag> for u32
§type Output = PerClientFlag
type Output = PerClientFlag
The resulting type after applying the
&
operator.source§impl BitAnd<u32> for PerClientFlag
impl BitAnd<u32> for PerClientFlag
source§impl BitAnd for PerClientFlag
impl BitAnd for PerClientFlag
source§impl BitAndAssign<PerClientFlag> for u32
impl BitAndAssign<PerClientFlag> for u32
source§fn bitand_assign(&mut self, other: PerClientFlag)
fn bitand_assign(&mut self, other: PerClientFlag)
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<PerClientFlag> for u32
impl BitOr<PerClientFlag> for u32
§type Output = PerClientFlag
type Output = PerClientFlag
The resulting type after applying the
|
operator.source§impl BitOr<u32> for PerClientFlag
impl BitOr<u32> for PerClientFlag
source§impl BitOr for PerClientFlag
impl BitOr for PerClientFlag
source§impl BitOrAssign<PerClientFlag> for u32
impl BitOrAssign<PerClientFlag> for u32
source§fn bitor_assign(&mut self, other: PerClientFlag)
fn bitor_assign(&mut self, other: PerClientFlag)
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<PerClientFlag> for Option<u32>
impl From<PerClientFlag> for Option<u32>
source§fn from(input: PerClientFlag) -> Self
fn from(input: PerClientFlag) -> Self
Converts to this type from the input type.
source§impl From<PerClientFlag> for u32
impl From<PerClientFlag> for u32
source§fn from(input: PerClientFlag) -> Self
fn from(input: PerClientFlag) -> Self
Converts to this type from the input type.
source§impl From<u16> for PerClientFlag
impl From<u16> for PerClientFlag
source§impl From<u32> for PerClientFlag
impl From<u32> for PerClientFlag
source§impl From<u8> for PerClientFlag
impl From<u8> for PerClientFlag
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 StructuralPartialEq for PerClientFlag
Auto Trait Implementations§
impl Freeze for PerClientFlag
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