pub struct Chord {
pub command: bool,
pub system: bool,
pub shift: bool,
pub alt: bool,
pub key: String,
}Expand description
A key with the modifiers held with it, as a shortcut is written: Ctrl+Enter, Ctrl+Shift+K,
Alt+Up, F2, e.
Fields§
§command: boolHeld: the platform’s command modifier (Command on macOS, Control elsewhere).
system: boolHeld: the desktop’s own modifier (Super).
shift: bool§alt: bool§key: StringThe key’s key token.
Implementations§
Trait Implementations§
impl Eq for Chord
impl StructuralPartialEq for Chord
Auto Trait Implementations§
impl Forget for Chord
impl Freeze for Chord
impl Move for Chord
impl RefUnwindSafe for Chord
impl Send for Chordwhere
RawVecInner: Send,
impl Sync for Chordwhere
RawVecInner: Sync,
impl Unpin for Chord
impl UnsafeUnpin for Chord
impl UnwindSafe for Chordwhere
RawVecInner: UnwindSafe,
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