pub struct Menu {
pub title: Arc<str>,
pub role: Option<MenuRole>,
pub mnemonic: Option<char>,
pub items: Vec<MenuItem>,
}Fields§
§title: Arc<str>§role: Option<MenuRole>§mnemonic: Option<char>Optional mnemonic/access key for Alt+Key activation on platforms that support it.
This is intentionally separate from title so titles can remain localization-friendly
and so OS vs in-window surfaces can share one source of truth.
items: Vec<MenuItem>Trait Implementations§
impl Eq for Menu
impl StructuralPartialEq for Menu
Auto Trait Implementations§
impl Freeze for Menu
impl RefUnwindSafe for Menu
impl Send for Menu
impl Sync for Menu
impl Unpin for Menu
impl UnsafeUnpin for Menu
impl UnwindSafe for Menu
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