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