writ 0.17.0

A hybrid markdown editor combining raw text editing with live inline rendering
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Cursor movement direction, used by the editor's movement methods.

/// Cursor movement direction.
#[derive(Clone, Debug, PartialEq)]
pub enum Direction {
    Left,
    Right,
    Up,
    Down,
    /// Start / end of the current line (Home / End).
    LineStart,
    LineEnd,
    /// Start / end of the document (Ctrl+Home / Ctrl+End).
    DocStart,
    DocEnd,
}