pub struct EventType(/* private fields */);
Implementations§
Source§impl EventType
impl EventType
pub const NEW_KEYBOARD_NOTIFY: Self
pub const MAP_NOTIFY: Self
pub const STATE_NOTIFY: Self
pub const CONTROLS_NOTIFY: Self
pub const INDICATOR_STATE_NOTIFY: Self
pub const INDICATOR_MAP_NOTIFY: Self
pub const NAMES_NOTIFY: Self
pub const COMPAT_MAP_NOTIFY: Self
pub const BELL_NOTIFY: Self
pub const ACTION_MESSAGE: Self
pub const ACCESS_X_NOTIFY: Self
pub const EXTENSION_DEVICE_NOTIFY: Self
Source§impl EventType
impl EventType
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 BitAndAssign<EventType> for u16
impl BitAndAssign<EventType> for u16
Source§fn bitand_assign(&mut self, other: EventType)
fn bitand_assign(&mut self, other: EventType)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<u16> for EventType
impl BitAndAssign<u16> for EventType
Source§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for EventType
impl BitAndAssign for EventType
Source§fn bitand_assign(&mut self, other: EventType)
fn bitand_assign(&mut self, other: EventType)
Performs the
&=
operation. Read moreSource§impl BitOrAssign<EventType> for u16
impl BitOrAssign<EventType> for u16
Source§fn bitor_assign(&mut self, other: EventType)
fn bitor_assign(&mut self, other: EventType)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<u16> for EventType
impl BitOrAssign<u16> for EventType
Source§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for EventType
impl BitOrAssign for EventType
Source§fn bitor_assign(&mut self, other: EventType)
fn bitor_assign(&mut self, other: EventType)
Performs the
|=
operation. Read moreSource§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
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 EventType
impl Ord for EventType
Source§impl PartialOrd for EventType
impl PartialOrd for EventType
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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