pub enum Movement {
Up,
Down,
Left,
Right,
PageUp,
PageDown,
Home,
End,
NextWord,
PrevWord,
}Expand description
Movements that can be captured from a KeyEvent. See the individual variants for
what keys they capture
Variants§
Up
The Up arrow key, and k is captured
Down
The Down arrow key, and j is captured
Left
The Left arrow key, h, and ctrl+b is captured
Right
The Right arrow key, l, and ctrl+f is captured
PageUp
The PageUp key is captured
PageDown
The PageDown key is captured
Home
The Home key, g, ctrl+a is captured
End
The End key, G, ctrl+e is captured
NextWord
ctrl+right, alt+right, and alt+f are captured
PrevWord
ctrl+left, alt+left, and alt+b are captured
Implementations§
Trait Implementations§
impl Copy for Movement
impl Eq for Movement
impl StructuralPartialEq for Movement
Auto Trait Implementations§
impl Freeze for Movement
impl RefUnwindSafe for Movement
impl Send for Movement
impl Sync for Movement
impl Unpin for Movement
impl UnwindSafe for Movement
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