pub struct ModifierState {
pub shift: bool,
pub fn_key: bool,
pub ctrl: bool,
pub opt: bool,
pub alt: bool,
}Expand description
State that tracks which modifier keys are currently held down.
Fields§
§shift: bool§fn_key: bool§ctrl: bool§opt: bool§alt: boolTrait Implementations§
Source§impl Clone for ModifierState
impl Clone for ModifierState
Source§fn clone(&self) -> ModifierState
fn clone(&self) -> ModifierState
Returns a duplicate 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 moreSource§impl Debug for ModifierState
impl Debug for ModifierState
Source§impl Default for ModifierState
impl Default for ModifierState
Source§fn default() -> ModifierState
fn default() -> ModifierState
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModifierState
impl PartialEq for ModifierState
impl Copy for ModifierState
impl Eq for ModifierState
impl StructuralPartialEq for ModifierState
Auto Trait Implementations§
impl Freeze for ModifierState
impl RefUnwindSafe for ModifierState
impl Send for ModifierState
impl Sync for ModifierState
impl Unpin for ModifierState
impl UnsafeUnpin for ModifierState
impl UnwindSafe for ModifierState
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