pub struct Hotkey { /* private fields */ }Expand description
A key combination that runs a command: a key, with Cmd (macOS) or Ctrl, and Shift.
use ravenrs_widgets::Hotkey;
assert_eq!(Hotkey::command("s").shift().label(), Hotkey::command("S").shift().label());
assert!(Hotkey::key(ravenrs_core::Key::Delete).label().contains("Del"));Implementations§
Trait Implementations§
impl Eq for Hotkey
impl StructuralPartialEq for Hotkey
Auto Trait Implementations§
impl Freeze for Hotkey
impl RefUnwindSafe for Hotkey
impl Send for Hotkey
impl Sync for Hotkey
impl Unpin for Hotkey
impl UnsafeUnpin for Hotkey
impl UnwindSafe for Hotkey
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more