Struct x11rb::protocol::xkb::SASetPtrDfltFlag
source · pub struct SASetPtrDfltFlag(/* private fields */);
Implementations§
source§impl SASetPtrDfltFlag
impl SASetPtrDfltFlag
pub const DFLT_BTN_ABSOLUTE: SASetPtrDfltFlag = _
pub const AFFECT_DFLT_BUTTON: SASetPtrDfltFlag = _
source§impl SASetPtrDfltFlag
impl SASetPtrDfltFlag
sourcepub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> 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<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> 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<u8>) -> SASetPtrDfltFlag
pub fn remove(self, flags: impl Into<u8>) -> SASetPtrDfltFlag
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<u8> for SASetPtrDfltFlag
impl BitAnd<u8> for SASetPtrDfltFlag
source§impl BitAnd for SASetPtrDfltFlag
impl BitAnd for SASetPtrDfltFlag
§type Output = SASetPtrDfltFlag
type Output = SASetPtrDfltFlag
The resulting type after applying the
&
operator.source§fn bitand(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitAnd>::Output
fn bitand(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u8> for SASetPtrDfltFlag
impl BitAndAssign<u8> for SASetPtrDfltFlag
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for SASetPtrDfltFlag
impl BitAndAssign for SASetPtrDfltFlag
source§fn bitand_assign(&mut self, other: SASetPtrDfltFlag)
fn bitand_assign(&mut self, other: SASetPtrDfltFlag)
Performs the
&=
operation. Read moresource§impl BitOr<u8> for SASetPtrDfltFlag
impl BitOr<u8> for SASetPtrDfltFlag
source§impl BitOr for SASetPtrDfltFlag
impl BitOr for SASetPtrDfltFlag
§type Output = SASetPtrDfltFlag
type Output = SASetPtrDfltFlag
The resulting type after applying the
|
operator.source§fn bitor(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitOr>::Output
fn bitor(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u8> for SASetPtrDfltFlag
impl BitOrAssign<u8> for SASetPtrDfltFlag
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for SASetPtrDfltFlag
impl BitOrAssign for SASetPtrDfltFlag
source§fn bitor_assign(&mut self, other: SASetPtrDfltFlag)
fn bitor_assign(&mut self, other: SASetPtrDfltFlag)
Performs the
|=
operation. Read moresource§impl Clone for SASetPtrDfltFlag
impl Clone for SASetPtrDfltFlag
source§fn clone(&self) -> SASetPtrDfltFlag
fn clone(&self) -> SASetPtrDfltFlag
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 SASetPtrDfltFlag
impl Debug for SASetPtrDfltFlag
source§impl Default for SASetPtrDfltFlag
impl Default for SASetPtrDfltFlag
source§fn default() -> SASetPtrDfltFlag
fn default() -> SASetPtrDfltFlag
Returns the “default value” for a type. Read more
source§impl From<u8> for SASetPtrDfltFlag
impl From<u8> for SASetPtrDfltFlag
source§fn from(value: u8) -> SASetPtrDfltFlag
fn from(value: u8) -> SASetPtrDfltFlag
Converts to this type from the input type.
source§impl Hash for SASetPtrDfltFlag
impl Hash for SASetPtrDfltFlag
source§impl Ord for SASetPtrDfltFlag
impl Ord for SASetPtrDfltFlag
source§fn cmp(&self, other: &SASetPtrDfltFlag) -> Ordering
fn cmp(&self, other: &SASetPtrDfltFlag) -> 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 SASetPtrDfltFlag
impl PartialEq for SASetPtrDfltFlag
source§fn eq(&self, other: &SASetPtrDfltFlag) -> bool
fn eq(&self, other: &SASetPtrDfltFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SASetPtrDfltFlag
impl PartialOrd for SASetPtrDfltFlag
source§fn partial_cmp(&self, other: &SASetPtrDfltFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &SASetPtrDfltFlag) -> 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 SASetPtrDfltFlag
impl Eq for SASetPtrDfltFlag
impl StructuralEq for SASetPtrDfltFlag
impl StructuralPartialEq for SASetPtrDfltFlag
Auto Trait Implementations§
impl RefUnwindSafe for SASetPtrDfltFlag
impl Send for SASetPtrDfltFlag
impl Sync for SASetPtrDfltFlag
impl Unpin for SASetPtrDfltFlag
impl UnwindSafe for SASetPtrDfltFlag
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