atac 0.22.1

Arguably a Terminal API Client. Feature-full, free, open-source, offline and account-less.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::tui::app_states::{AppState, next_app_state, previous_app_state};

#[derive(Default)]
pub struct HelpPopup {
    pub selection: AppState,
}

impl HelpPopup {
    pub fn next_page(&mut self) {
        self.selection = next_app_state(&self.selection);
    }

    pub fn previous_page(&mut self) {
        self.selection = previous_app_state(&self.selection);
    }
}