Struct PerClientFlag
pub struct PerClientFlag(/* private fields */);
Implementations§
§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 = _
§impl PerClientFlag
impl PerClientFlag
pub 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.
pub 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.
pub 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§
§impl BitAnd<u32> for PerClientFlag
impl BitAnd<u32> for PerClientFlag
§impl BitAnd for PerClientFlag
impl BitAnd for PerClientFlag
§type Output = PerClientFlag
type Output = PerClientFlag
The resulting type after applying the
&
operator.§fn bitand(self, other: PerClientFlag) -> <PerClientFlag as BitAnd>::Output
fn bitand(self, other: PerClientFlag) -> <PerClientFlag as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for PerClientFlag
impl BitAndAssign<u32> for PerClientFlag
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for PerClientFlag
impl BitAndAssign for PerClientFlag
§fn bitand_assign(&mut self, other: PerClientFlag)
fn bitand_assign(&mut self, other: PerClientFlag)
Performs the
&=
operation. Read more§impl BitOr<u32> for PerClientFlag
impl BitOr<u32> for PerClientFlag
§impl BitOr for PerClientFlag
impl BitOr for PerClientFlag
§type Output = PerClientFlag
type Output = PerClientFlag
The resulting type after applying the
|
operator.§fn bitor(self, other: PerClientFlag) -> <PerClientFlag as BitOr>::Output
fn bitor(self, other: PerClientFlag) -> <PerClientFlag as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for PerClientFlag
impl BitOrAssign<u32> for PerClientFlag
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for PerClientFlag
impl BitOrAssign for PerClientFlag
§fn bitor_assign(&mut self, other: PerClientFlag)
fn bitor_assign(&mut self, other: PerClientFlag)
Performs the
|=
operation. Read more§impl Clone for PerClientFlag
impl Clone for PerClientFlag
§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 more§impl Debug for PerClientFlag
impl Debug for PerClientFlag
§impl Default for PerClientFlag
impl Default for PerClientFlag
§fn default() -> PerClientFlag
fn default() -> PerClientFlag
Returns the “default value” for a type. Read more
§impl From<u16> for PerClientFlag
impl From<u16> for PerClientFlag
§fn from(value: u16) -> PerClientFlag
fn from(value: u16) -> PerClientFlag
Converts to this type from the input type.
§impl From<u32> for PerClientFlag
impl From<u32> for PerClientFlag
§fn from(value: u32) -> PerClientFlag
fn from(value: u32) -> PerClientFlag
Converts to this type from the input type.
§impl From<u8> for PerClientFlag
impl From<u8> for PerClientFlag
§fn from(value: u8) -> PerClientFlag
fn from(value: u8) -> PerClientFlag
Converts to this type from the input type.
§impl Hash for PerClientFlag
impl Hash for PerClientFlag
§impl Ord for PerClientFlag
impl Ord for PerClientFlag
§impl PartialEq for PerClientFlag
impl PartialEq for PerClientFlag
§impl PartialOrd for PerClientFlag
impl PartialOrd for PerClientFlag
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)