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