1 2 3 4 5 6 7 8 9 10 11 12
use super::*; static OK: &str = "OK"; pub fn inform<S: Into<String>>(txt: S) -> Menu<&'static str> { let mut menu = Menu::new(); menu.add_item(OK, None); menu.state.set_intro(txt); menu } pub type InformMenu = Menu<&'static str>;