#[non_exhaustive]pub enum Key {
ArrowLeft,
ArrowRight,
ArrowUp,
ArrowDown,
Home,
End,
Escape,
Delete,
Enter,
Char(char),
}Expand description
Keys the chart reacts to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ArrowLeft
Left arrow: pan towards earlier bars.
ArrowRight
Right arrow: pan towards later bars.
ArrowUp
Up arrow: zoom in.
ArrowDown
Down arrow: zoom out.
Home
Home: scroll to the first bar.
End
End: scroll to the latest bar.
Escape
Escape: cancel the current drag or the drawing being created.
Delete
Delete: delete the selected drawing.
Enter
Enter: finish a drawing with an open number of anchors (a path).
Char(char)
Any other key, by character.
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Forget for Key
impl Freeze for Key
impl Move for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin 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