pub struct EvMask(/* private fields */);Implementations§
Source§impl EvMask
impl EvMask
pub const NO_EVENT_MASK: EvMask
pub const PRINT_MASK: EvMask
pub const ATTRIBUTE_MASK: EvMask
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<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<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 Ord for EvMask
impl Ord for EvMask
Source§impl PartialOrd for EvMask
impl PartialOrd for EvMask
impl 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