Struct SelectionEventMask
pub struct SelectionEventMask(/* private fields */);
Implementations§
§impl SelectionEventMask
impl SelectionEventMask
pub const SET_SELECTION_OWNER: SelectionEventMask = _
pub const SELECTION_WINDOW_DESTROY: SelectionEventMask = _
pub const SELECTION_CLIENT_CLOSE: SelectionEventMask = _
§impl SelectionEventMask
impl SelectionEventMask
pub 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.
pub 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.
pub 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§
§impl BitAnd<u32> for SelectionEventMask
impl BitAnd<u32> for SelectionEventMask
§impl BitAnd for SelectionEventMask
impl BitAnd for SelectionEventMask
§type Output = SelectionEventMask
type Output = SelectionEventMask
The resulting type after applying the
&
operator.§fn bitand(
self,
other: SelectionEventMask,
) -> <SelectionEventMask as BitAnd>::Output
fn bitand( self, other: SelectionEventMask, ) -> <SelectionEventMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for SelectionEventMask
impl BitAndAssign<u32> for SelectionEventMask
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for SelectionEventMask
impl BitAndAssign for SelectionEventMask
§fn bitand_assign(&mut self, other: SelectionEventMask)
fn bitand_assign(&mut self, other: SelectionEventMask)
Performs the
&=
operation. Read more§impl BitOr<u32> for SelectionEventMask
impl BitOr<u32> for SelectionEventMask
§impl BitOr for SelectionEventMask
impl BitOr for SelectionEventMask
§type Output = SelectionEventMask
type Output = SelectionEventMask
The resulting type after applying the
|
operator.§fn bitor(
self,
other: SelectionEventMask,
) -> <SelectionEventMask as BitOr>::Output
fn bitor( self, other: SelectionEventMask, ) -> <SelectionEventMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for SelectionEventMask
impl BitOrAssign<u32> for SelectionEventMask
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for SelectionEventMask
impl BitOrAssign for SelectionEventMask
§fn bitor_assign(&mut self, other: SelectionEventMask)
fn bitor_assign(&mut self, other: SelectionEventMask)
Performs the
|=
operation. Read more§impl Clone for SelectionEventMask
impl Clone for SelectionEventMask
§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 more§impl Debug for SelectionEventMask
impl Debug for SelectionEventMask
§impl Default for SelectionEventMask
impl Default for SelectionEventMask
§fn default() -> SelectionEventMask
fn default() -> SelectionEventMask
Returns the “default value” for a type. Read more
§impl From<u16> for SelectionEventMask
impl From<u16> for SelectionEventMask
§fn from(value: u16) -> SelectionEventMask
fn from(value: u16) -> SelectionEventMask
Converts to this type from the input type.
§impl From<u32> for SelectionEventMask
impl From<u32> for SelectionEventMask
§fn from(value: u32) -> SelectionEventMask
fn from(value: u32) -> SelectionEventMask
Converts to this type from the input type.
§impl From<u8> for SelectionEventMask
impl From<u8> for SelectionEventMask
§fn from(value: u8) -> SelectionEventMask
fn from(value: u8) -> SelectionEventMask
Converts to this type from the input type.
§impl Hash for SelectionEventMask
impl Hash for SelectionEventMask
§impl Ord for SelectionEventMask
impl Ord for SelectionEventMask
§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
§impl PartialEq for SelectionEventMask
impl PartialEq for SelectionEventMask
§impl PartialOrd for SelectionEventMask
impl PartialOrd for SelectionEventMask
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)