pub struct MenuDef {
pub commands: Vec<String>,
pub submenus: Vec<(String, u32)>,
pub keys: Vec<MenuKey>,
}Expand description
What one menu offers.
Fields§
§commands: Vec<String>The commands its keys run, in key order, each once.
Keys that switch to another menu: (label, menu number).
keys: Vec<MenuKey>Every key in key order, six to a page (the first page’s keys,
then the next page’s after NXT), as the definition lists them.
For a definition that is a program building the menu, the keys
of the first list in it: on the ROMs tried that list is what the
screen shows (MTH and PRG on the 48SX and 48GX, the 48SX’s SOLVE
and PLOT; crates/saturnus-host/tests/menu_keys.rs).
Trait Implementations§
impl Eq for MenuDef
impl StructuralPartialEq for MenuDef
Auto Trait Implementations§
impl Freeze for MenuDef
impl RefUnwindSafe for MenuDef
impl Send for MenuDef
impl Sync for MenuDef
impl Unpin for MenuDef
impl UnsafeUnpin for MenuDef
impl UnwindSafe for MenuDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more