pub enum Direction {
Forward,
Backward,
}Expand description
Direction of cursor movement.
Used by character, line, word, paragraph, and find-char motions.
§Example
use reovim_kernel::api::v1::*;
let forward = Direction::Forward; // h, j, w, }, f
let backward = Direction::Backward; // l, k, b, {, FVariants§
Forward
Move forward (right for chars, down for lines)
Backward
Move backward (left for chars, up for lines)
Implementations§
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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