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