Struct x11rb_protocol::protocol::xkb::SASetPtrDfltFlag
source · pub struct SASetPtrDfltFlag(/* private fields */);
Implementations§
source§impl SASetPtrDfltFlag
impl SASetPtrDfltFlag
pub const DFLT_BTN_ABSOLUTE: Self = _
pub const AFFECT_DFLT_BUTTON: Self = _
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.
Trait Implementations§
source§impl BitAnd<SASetPtrDfltFlag> for u8
impl BitAnd<SASetPtrDfltFlag> for u8
§type Output = SASetPtrDfltFlag
type Output = SASetPtrDfltFlag
The resulting type after applying the
&
operator.source§impl BitAnd<u8> for SASetPtrDfltFlag
impl BitAnd<u8> for SASetPtrDfltFlag
source§impl BitAnd for SASetPtrDfltFlag
impl BitAnd for SASetPtrDfltFlag
source§impl BitAndAssign<SASetPtrDfltFlag> for u8
impl BitAndAssign<SASetPtrDfltFlag> for u8
source§fn bitand_assign(&mut self, other: SASetPtrDfltFlag)
fn bitand_assign(&mut self, other: SASetPtrDfltFlag)
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<SASetPtrDfltFlag> for u8
impl BitOr<SASetPtrDfltFlag> for u8
§type Output = SASetPtrDfltFlag
type Output = SASetPtrDfltFlag
The resulting type after applying the
|
operator.source§impl BitOr<u8> for SASetPtrDfltFlag
impl BitOr<u8> for SASetPtrDfltFlag
source§impl BitOr for SASetPtrDfltFlag
impl BitOr for SASetPtrDfltFlag
source§impl BitOrAssign<SASetPtrDfltFlag> for u8
impl BitOrAssign<SASetPtrDfltFlag> for u8
source§fn bitor_assign(&mut self, other: SASetPtrDfltFlag)
fn bitor_assign(&mut self, other: SASetPtrDfltFlag)
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<SASetPtrDfltFlag> for Option<u16>
impl From<SASetPtrDfltFlag> for Option<u16>
source§fn from(input: SASetPtrDfltFlag) -> Self
fn from(input: SASetPtrDfltFlag) -> Self
Converts to this type from the input type.
source§impl From<SASetPtrDfltFlag> for Option<u32>
impl From<SASetPtrDfltFlag> for Option<u32>
source§fn from(input: SASetPtrDfltFlag) -> Self
fn from(input: SASetPtrDfltFlag) -> Self
Converts to this type from the input type.
source§impl From<SASetPtrDfltFlag> for Option<u8>
impl From<SASetPtrDfltFlag> for Option<u8>
source§fn from(input: SASetPtrDfltFlag) -> Self
fn from(input: SASetPtrDfltFlag) -> Self
Converts to this type from the input type.
source§impl From<SASetPtrDfltFlag> for u16
impl From<SASetPtrDfltFlag> for u16
source§fn from(input: SASetPtrDfltFlag) -> Self
fn from(input: SASetPtrDfltFlag) -> Self
Converts to this type from the input type.
source§impl From<SASetPtrDfltFlag> for u32
impl From<SASetPtrDfltFlag> for u32
source§fn from(input: SASetPtrDfltFlag) -> Self
fn from(input: SASetPtrDfltFlag) -> Self
Converts to this type from the input type.
source§impl From<SASetPtrDfltFlag> for u8
impl From<SASetPtrDfltFlag> for u8
source§fn from(input: SASetPtrDfltFlag) -> Self
fn from(input: SASetPtrDfltFlag) -> Self
Converts to this type from the input type.
source§impl From<u8> for SASetPtrDfltFlag
impl From<u8> for SASetPtrDfltFlag
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