pub enum ShortcutKey {
}Expand description
快捷键主键(不包含修饰键)。
Char 只支持 ASCII 字母、数字与常见标点;名称键覆盖导航/编辑/F1–F24。
Variants§
Char(char)
Enter
Escape
Tab
Space
Backspace
Delete
Insert
Left
Right
Up
Down
Home
End
PageUp
PageDown
F(u8)
F1–F24;非法范围在注册/构建菜单时返回错误。
Trait Implementations§
Source§impl Clone for ShortcutKey
impl Clone for ShortcutKey
Source§fn clone(&self) -> ShortcutKey
fn clone(&self) -> ShortcutKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShortcutKey
Source§impl Debug for ShortcutKey
impl Debug for ShortcutKey
impl Eq for ShortcutKey
Source§impl Hash for ShortcutKey
impl Hash for ShortcutKey
Source§impl PartialEq for ShortcutKey
impl PartialEq for ShortcutKey
impl StructuralPartialEq for ShortcutKey
Auto Trait Implementations§
impl Freeze for ShortcutKey
impl RefUnwindSafe for ShortcutKey
impl Send for ShortcutKey
impl Sync for ShortcutKey
impl Unpin for ShortcutKey
impl UnsafeUnpin for ShortcutKey
impl UnwindSafe for ShortcutKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.