txtview 0.1.3

A lightweight terminal text viewer with scrolling, wrapping, line numbers, and an optional interactive scrollbar
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Where a piece pins the rectangle it will paint.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum Anchor {
    /// The box's top-left corner.
    #[allow(dead_code)]
    TopLeft,
    /// The box's top-right corner.
    TopRight,
    /// The box's bottom-left corner.
    BottomLeft,
    /// The box's bottom-right corner.
    #[allow(dead_code)]
    BottomRight,
    /// The middle of the box, both horizontally and vertically.
    #[allow(dead_code)]
    Center,
}