pub struct BarMenu {
pub label: String,
pub items: Vec<MenuItem>,
pub enabled: bool,
}Expand description
One menu of the bar: what the bar reads, and what drops out of it.
Fields§
§label: StringWhat the bar shows. On macOS the first menu is the application menu and the platform titles that one with the app’s own name, whatever this says.
items: Vec<MenuItem>§enabled: boolA disabled menu is dimmed and opens nothing.
Implementations§
Trait Implementations§
impl StructuralPartialEq for BarMenu
Auto Trait Implementations§
impl Freeze for BarMenu
impl RefUnwindSafe for BarMenu
impl Send for BarMenu
impl Sync for BarMenu
impl Unpin for BarMenu
impl UnsafeUnpin for BarMenu
impl UnwindSafe for BarMenu
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