Struct x11rb_protocol::protocol::xprint::EvMask
source · pub struct EvMask(/* private fields */);
Implementations§
source§impl EvMask
impl EvMask
pub const NO_EVENT_MASK: Self = _
pub const PRINT_MASK: Self = _
pub const ATTRIBUTE_MASK: Self = _
source§impl EvMask
impl EvMask
sourcepub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> 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<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> 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 BitAndAssign<EvMask> for u8
impl BitAndAssign<EvMask> for u8
source§fn bitand_assign(&mut self, other: EvMask)
fn bitand_assign(&mut self, other: EvMask)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u8> for EvMask
impl BitAndAssign<u8> for EvMask
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for EvMask
impl BitAndAssign for EvMask
source§fn bitand_assign(&mut self, other: EvMask)
fn bitand_assign(&mut self, other: EvMask)
Performs the
&=
operation. Read moresource§impl BitOrAssign<EvMask> for u8
impl BitOrAssign<EvMask> for u8
source§fn bitor_assign(&mut self, other: EvMask)
fn bitor_assign(&mut self, other: EvMask)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u8> for EvMask
impl BitOrAssign<u8> for EvMask
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for EvMask
impl BitOrAssign for EvMask
source§fn bitor_assign(&mut self, other: EvMask)
fn bitor_assign(&mut self, other: EvMask)
Performs the
|=
operation. Read moresource§impl<'de> Deserialize<'de> for EvMask
impl<'de> Deserialize<'de> for EvMask
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for EvMask
impl Ord for EvMask
source§impl PartialEq for EvMask
impl PartialEq for EvMask
source§impl PartialOrd for EvMask
impl PartialOrd for EvMask
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 EvMask
impl Eq for EvMask
impl StructuralPartialEq for EvMask
Auto Trait Implementations§
impl Freeze for EvMask
impl RefUnwindSafe for EvMask
impl Send for EvMask
impl Sync for EvMask
impl Unpin for EvMask
impl UnwindSafe for EvMask
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