Struct CursorNotifyMask
pub struct CursorNotifyMask(/* private fields */);
Implementations§
§impl CursorNotifyMask
impl CursorNotifyMask
pub const DISPLAY_CURSOR: CursorNotifyMask = _
§impl CursorNotifyMask
impl CursorNotifyMask
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>) -> CursorNotifyMask
pub fn remove(self, flags: impl Into<u32>) -> CursorNotifyMask
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 CursorNotifyMask
impl BitAnd<u32> for CursorNotifyMask
§impl BitAnd for CursorNotifyMask
impl BitAnd for CursorNotifyMask
§type Output = CursorNotifyMask
type Output = CursorNotifyMask
The resulting type after applying the
&
operator.§fn bitand(self, other: CursorNotifyMask) -> <CursorNotifyMask as BitAnd>::Output
fn bitand(self, other: CursorNotifyMask) -> <CursorNotifyMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for CursorNotifyMask
impl BitAndAssign<u32> for CursorNotifyMask
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for CursorNotifyMask
impl BitAndAssign for CursorNotifyMask
§fn bitand_assign(&mut self, other: CursorNotifyMask)
fn bitand_assign(&mut self, other: CursorNotifyMask)
Performs the
&=
operation. Read more§impl BitOr<u32> for CursorNotifyMask
impl BitOr<u32> for CursorNotifyMask
§impl BitOr for CursorNotifyMask
impl BitOr for CursorNotifyMask
§type Output = CursorNotifyMask
type Output = CursorNotifyMask
The resulting type after applying the
|
operator.§fn bitor(self, other: CursorNotifyMask) -> <CursorNotifyMask as BitOr>::Output
fn bitor(self, other: CursorNotifyMask) -> <CursorNotifyMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for CursorNotifyMask
impl BitOrAssign<u32> for CursorNotifyMask
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for CursorNotifyMask
impl BitOrAssign for CursorNotifyMask
§fn bitor_assign(&mut self, other: CursorNotifyMask)
fn bitor_assign(&mut self, other: CursorNotifyMask)
Performs the
|=
operation. Read more§impl Clone for CursorNotifyMask
impl Clone for CursorNotifyMask
§fn clone(&self) -> CursorNotifyMask
fn clone(&self) -> CursorNotifyMask
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 CursorNotifyMask
impl Debug for CursorNotifyMask
§impl Default for CursorNotifyMask
impl Default for CursorNotifyMask
§fn default() -> CursorNotifyMask
fn default() -> CursorNotifyMask
Returns the “default value” for a type. Read more
§impl From<u16> for CursorNotifyMask
impl From<u16> for CursorNotifyMask
§fn from(value: u16) -> CursorNotifyMask
fn from(value: u16) -> CursorNotifyMask
Converts to this type from the input type.
§impl From<u32> for CursorNotifyMask
impl From<u32> for CursorNotifyMask
§fn from(value: u32) -> CursorNotifyMask
fn from(value: u32) -> CursorNotifyMask
Converts to this type from the input type.
§impl From<u8> for CursorNotifyMask
impl From<u8> for CursorNotifyMask
§fn from(value: u8) -> CursorNotifyMask
fn from(value: u8) -> CursorNotifyMask
Converts to this type from the input type.
§impl Hash for CursorNotifyMask
impl Hash for CursorNotifyMask
§impl Ord for CursorNotifyMask
impl Ord for CursorNotifyMask
§fn cmp(&self, other: &CursorNotifyMask) -> Ordering
fn cmp(&self, other: &CursorNotifyMask) -> 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 CursorNotifyMask
impl PartialEq for CursorNotifyMask
§impl PartialOrd for CursorNotifyMask
impl PartialOrd for CursorNotifyMask
impl Copy for CursorNotifyMask
impl Eq for CursorNotifyMask
impl StructuralPartialEq for CursorNotifyMask
Auto Trait Implementations§
impl Freeze for CursorNotifyMask
impl RefUnwindSafe for CursorNotifyMask
impl Send for CursorNotifyMask
impl Sync for CursorNotifyMask
impl Unpin for CursorNotifyMask
impl UnwindSafe for CursorNotifyMask
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
)