pub struct MenuBuilder { /* private fields */ }
Expand description
Implementations§
Source§impl MenuBuilder
impl MenuBuilder
Sourcepub fn section(self, section: MenuBuilder) -> Self
pub fn section(self, section: MenuBuilder) -> Self
Add a section to this menu.
Sourcepub fn section_label(self, label: &str, section: MenuBuilder) -> Self
pub fn section_label(self, label: &str, section: MenuBuilder) -> Self
Add a section with a label to this menu.
Sourcepub fn sub(self, label: &str, submenu: MenuBuilder) -> Self
pub fn sub(self, label: &str, submenu: MenuBuilder) -> Self
Add a submenu to this menu.
Auto Trait Implementations§
impl Freeze for MenuBuilder
impl RefUnwindSafe for MenuBuilder
impl !Send for MenuBuilder
impl !Sync for MenuBuilder
impl Unpin for MenuBuilder
impl UnwindSafe for MenuBuilder
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