pub enum Key {
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Scratch,
FreeZone,
}
Expand description
A key of the controller or keyboard.
|---------|----------------------|
| | [K2] [K4] [K6] |
|(Scratch)|[K1] [K3] [K5] [K7]|
|---------|----------------------|
Variants§
Key1
The leftmost white key.
Key2
The leftmost black key.
Key3
The second white key from the left.
Key4
The second black key from the left.
Key5
The third white key from the left.
Key6
The rightmost black key.
Key7
The rightmost white key.
Scratch
The scratch disk.
FreeZone
The zone that the user can scratch disk freely.
Implementations§
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralEq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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