Struct x11rb_protocol::protocol::randr::NotifyMask
source · pub struct NotifyMask(/* private fields */);
Implementations§
source§impl NotifyMask
impl NotifyMask
pub const SCREEN_CHANGE: Self = _
pub const CRTC_CHANGE: Self = _
pub const OUTPUT_CHANGE: Self = _
pub const OUTPUT_PROPERTY: Self = _
pub const PROVIDER_CHANGE: Self = _
pub const PROVIDER_PROPERTY: Self = _
pub const RESOURCE_CHANGE: Self = _
pub const LEASE: Self = _
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.
Trait Implementations§
source§impl BitAnd<NotifyMask> for u16
impl BitAnd<NotifyMask> for u16
§type Output = NotifyMask
type Output = NotifyMask
The resulting type after applying the
&
operator.source§impl BitAnd<u16> for NotifyMask
impl BitAnd<u16> for NotifyMask
source§impl BitAnd for NotifyMask
impl BitAnd for NotifyMask
source§impl BitAndAssign<NotifyMask> for u16
impl BitAndAssign<NotifyMask> for u16
source§fn bitand_assign(&mut self, other: NotifyMask)
fn bitand_assign(&mut self, other: NotifyMask)
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<NotifyMask> for u16
impl BitOr<NotifyMask> for u16
§type Output = NotifyMask
type Output = NotifyMask
The resulting type after applying the
|
operator.source§impl BitOr<u16> for NotifyMask
impl BitOr<u16> for NotifyMask
source§impl BitOr for NotifyMask
impl BitOr for NotifyMask
source§impl BitOrAssign<NotifyMask> for u16
impl BitOrAssign<NotifyMask> for u16
source§fn bitor_assign(&mut self, other: NotifyMask)
fn bitor_assign(&mut self, other: NotifyMask)
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<NotifyMask> for Option<u16>
impl From<NotifyMask> for Option<u16>
source§fn from(input: NotifyMask) -> Self
fn from(input: NotifyMask) -> Self
Converts to this type from the input type.
source§impl From<NotifyMask> for Option<u32>
impl From<NotifyMask> for Option<u32>
source§fn from(input: NotifyMask) -> Self
fn from(input: NotifyMask) -> Self
Converts to this type from the input type.
source§impl From<NotifyMask> for u16
impl From<NotifyMask> for u16
source§fn from(input: NotifyMask) -> Self
fn from(input: NotifyMask) -> Self
Converts to this type from the input type.
source§impl From<NotifyMask> for u32
impl From<NotifyMask> for u32
source§fn from(input: NotifyMask) -> Self
fn from(input: NotifyMask) -> Self
Converts to this type from the input type.
source§impl From<u16> for NotifyMask
impl From<u16> for NotifyMask
source§impl From<u8> for NotifyMask
impl From<u8> for NotifyMask
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 StructuralEq for NotifyMask
impl StructuralPartialEq for NotifyMask
Auto Trait Implementations§
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