pub struct Event(/* private fields */);
Implementations§
Source§impl Event
impl Event
pub const NOTIFY_MASK: Self
pub const CYCLE_MASK: Self
Source§impl Event
impl Event
Sourcepub 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.
Sourcepub 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.
Trait Implementations§
Source§impl BitAndAssign<Event> for u32
impl BitAndAssign<Event> for u32
Source§fn bitand_assign(&mut self, other: Event)
fn bitand_assign(&mut self, other: Event)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<u32> for Event
impl BitAndAssign<u32> for Event
Source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for Event
impl BitAndAssign for Event
Source§fn bitand_assign(&mut self, other: Event)
fn bitand_assign(&mut self, other: Event)
Performs the
&=
operation. Read moreSource§impl BitOrAssign<Event> for u32
impl BitOrAssign<Event> for u32
Source§fn bitor_assign(&mut self, other: Event)
fn bitor_assign(&mut self, other: Event)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<u32> for Event
impl BitOrAssign<u32> for Event
Source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for Event
impl BitOrAssign for Event
Source§fn bitor_assign(&mut self, other: Event)
fn bitor_assign(&mut self, other: Event)
Performs the
|=
operation. Read moreSource§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl Ord for Event
Source§impl PartialOrd for Event
impl PartialOrd for Event
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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