menu_genie 0.1.0

Multi-level terminal menu library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// MenuAction describes what should be done with the callstack.
#[derive(Debug)]
pub enum MenuAction {
    /// Pops the last menu id from the callstack
    Back,
    /// Removes all but the first element from the callstack
    BackToStart,
    /// Clears the callstack
    Quit,
    /// Pushes menu_id onto the callstack so the next time prompt is called
    /// new menu will be displayed
    Navigate(usize),
    /// Does nothing to the callstack but it returns the tuple containing which menu action
    /// was selected
    Nothing,
}