pub struct Menus { /* private fields */ }Expand description
The built-in menus of one ROM, by menu number.
Implementations§
Source§impl Menus
impl Menus
Sourcepub fn truncated(&self) -> bool
pub fn truncated(&self) -> bool
Whether the read stopped at MAX_STEPS (garbage, or a ROM far
larger than any known): the result is incomplete.
Sourcepub fn number(&self, pointer: u32, mem: &dyn Memory) -> Option<u32>
pub fn number(&self, pointer: u32, mem: &dyn Memory) -> Option<u32>
The menu a current-menu pointer (Layout::menu_ptr) designates:
pointer is that pointer’s value and mem the machine, which
holds either the definition itself (48SX) or an XLIB name of the
menu library’s entry (48GX, 49G).
Sourcepub fn iter(&self) -> impl Iterator<Item = (u32, &MenuDef)>
pub fn iter(&self) -> impl Iterator<Item = (u32, &MenuDef)>
The menus with a definition: (number, definition).
Sourcepub fn paths(&self, roots: &[(u32, String)]) -> BTreeMap<u32, String>
pub fn paths(&self, roots: &[(u32, String)]) -> BTreeMap<u32, String>
Each menu’s name: a root menu’s from roots (the keyboard legend
of the key that opens it), a submenu’s as its parent’s name and the
label of the key that leads to it (MTH HYP), the shortest path
winning. A menu no key reaches is named as the calculator opens it,
MENU n, and its submenus after it (MENU 62 FMT).
Trait Implementations§
impl Eq for Menus
impl StructuralPartialEq for Menus
Auto Trait Implementations§
impl Forget for Menus
impl Freeze for Menus
impl RefUnwindSafe for Menus
impl Send for Menus
impl Sync for Menus
impl Unpin for Menus
impl UnsafeUnpin for Menus
impl UnwindSafe for Menus
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