Struct KeyEventFlags
pub struct KeyEventFlags(/* private fields */);
Implementations§
§impl KeyEventFlags
impl KeyEventFlags
pub const KEY_REPEAT: KeyEventFlags = _
§impl KeyEventFlags
impl KeyEventFlags
pub 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.
pub 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.
pub fn remove(self, flags: impl Into<u32>) -> KeyEventFlags
pub fn remove(self, flags: impl Into<u32>) -> KeyEventFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for KeyEventFlags
impl BitAnd<u32> for KeyEventFlags
§impl BitAnd for KeyEventFlags
impl BitAnd for KeyEventFlags
§type Output = KeyEventFlags
type Output = KeyEventFlags
The resulting type after applying the
&
operator.§fn bitand(self, other: KeyEventFlags) -> <KeyEventFlags as BitAnd>::Output
fn bitand(self, other: KeyEventFlags) -> <KeyEventFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for KeyEventFlags
impl BitAndAssign<u32> for KeyEventFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for KeyEventFlags
impl BitAndAssign for KeyEventFlags
§fn bitand_assign(&mut self, other: KeyEventFlags)
fn bitand_assign(&mut self, other: KeyEventFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for KeyEventFlags
impl BitOr<u32> for KeyEventFlags
§impl BitOr for KeyEventFlags
impl BitOr for KeyEventFlags
§type Output = KeyEventFlags
type Output = KeyEventFlags
The resulting type after applying the
|
operator.§fn bitor(self, other: KeyEventFlags) -> <KeyEventFlags as BitOr>::Output
fn bitor(self, other: KeyEventFlags) -> <KeyEventFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for KeyEventFlags
impl BitOrAssign<u32> for KeyEventFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for KeyEventFlags
impl BitOrAssign for KeyEventFlags
§fn bitor_assign(&mut self, other: KeyEventFlags)
fn bitor_assign(&mut self, other: KeyEventFlags)
Performs the
|=
operation. Read more§impl Clone for KeyEventFlags
impl Clone for KeyEventFlags
§fn clone(&self) -> KeyEventFlags
fn clone(&self) -> KeyEventFlags
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 more§impl Debug for KeyEventFlags
impl Debug for KeyEventFlags
§impl Default for KeyEventFlags
impl Default for KeyEventFlags
§fn default() -> KeyEventFlags
fn default() -> KeyEventFlags
Returns the “default value” for a type. Read more
§impl From<u16> for KeyEventFlags
impl From<u16> for KeyEventFlags
§fn from(value: u16) -> KeyEventFlags
fn from(value: u16) -> KeyEventFlags
Converts to this type from the input type.
§impl From<u32> for KeyEventFlags
impl From<u32> for KeyEventFlags
§fn from(value: u32) -> KeyEventFlags
fn from(value: u32) -> KeyEventFlags
Converts to this type from the input type.
§impl From<u8> for KeyEventFlags
impl From<u8> for KeyEventFlags
§fn from(value: u8) -> KeyEventFlags
fn from(value: u8) -> KeyEventFlags
Converts to this type from the input type.
§impl Hash for KeyEventFlags
impl Hash for KeyEventFlags
§impl Ord for KeyEventFlags
impl Ord for KeyEventFlags
§impl PartialEq for KeyEventFlags
impl PartialEq for KeyEventFlags
§impl PartialOrd for KeyEventFlags
impl PartialOrd for KeyEventFlags
impl Copy for KeyEventFlags
impl Eq for KeyEventFlags
impl StructuralPartialEq for KeyEventFlags
Auto Trait Implementations§
impl Freeze for KeyEventFlags
impl RefUnwindSafe for KeyEventFlags
impl Send for KeyEventFlags
impl Sync for KeyEventFlags
impl Unpin for KeyEventFlags
impl UnwindSafe for KeyEventFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)