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