pub enum KeyCode {
Show 21 variants
Add,
Back,
Delete,
Divide,
Down,
End,
Escape,
Home,
Insert,
Left,
Menu,
Next,
Prior,
Return,
Right,
RWin,
Subtract,
Tab,
Up,
Win,
Other(u32),
}Expand description
键代码是可见字符或控制字符,或来自 SCK_* 枚举的键
Variants§
Add
Back
Delete
Divide
Down
End
Escape
Home
Insert
Left
Menu
Next
Prior
Return
Right
RWin
Subtract
Tab
Up
Win
Other(u32)
Trait Implementations§
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
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