cliclack 0.5.4

Beautiful, minimal, opinionated CLI prompts inspired by the Clack NPM package.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Represents a visible page of items in a selection list.
#[derive(Clone)]
pub struct ListView {
    /// The height of the page (number of visible items).
    pub height: usize,
    /// The starting index of the page.
    pub start: usize,
}

impl Default for ListView {
    fn default() -> Self {
        Self {
            height: usize::MAX,
            start: 0,
        }
    }
}