pub enum MenuItem {
Label(String),
SubPage {
label: String,
target: MenuPageId,
},
Separator,
}Expand description
A single row inside a [MenuPage].
Registration policy: Specification Required (LPAR-13 §7).
Variants§
Label(String)
Plain text label.
SubPage
Text label that navigates to target page when activated.
Fields
§
target: MenuPageIdPage to push onto the stack when activated.
Separator
Horizontal rule / divider between groups of items.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin for MenuItem
impl UnwindSafe for MenuItem
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