pub struct Menu<A> {
pub title: String,
pub entries: Vec<MenuEntry<A>>,
}Expand description
A menu: its title, and its entries in order. A is what an item does: an action the
app runs, or, as backends receive it, the number of the item.
Fields§
§title: String§entries: Vec<MenuEntry<A>>Implementations§
Trait Implementations§
impl<A> Eq for Menu<A>where
A: Eq,
impl<A> StructuralPartialEq for Menu<A>where
A: PartialEq,
Auto Trait Implementations§
impl<A> Freeze for Menu<A>
impl<A> RefUnwindSafe for Menu<A>where
A: RefUnwindSafe,
impl<A> Send for Menu<A>where
A: Send,
impl<A> Sync for Menu<A>where
A: Sync,
impl<A> Unpin for Menu<A>where
A: Unpin,
impl<A> UnsafeUnpin for Menu<A>
impl<A> UnwindSafe for Menu<A>where
A: UnwindSafe,
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