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