Trait prototty_elements::menu::MenuRunner
[−]
[src]
pub trait MenuRunner { fn run_menu<T, V, F>(
&mut self,
view: &mut V,
get_instance: F
) -> Result<MenuChoice<T>>
where
T: Copy,
V: View,
F: Fn(&mut V) -> &mut MenuInstance<T>; }
Running a menu is the process of displaying the menu with a visible selection, and capturing input to change the selection. It's possbile for a user to submit their selection (usually by pressing a key), to cancel the menu (usually by pressing a different key), or to quit the menu (usually by senting ETX).