pub struct MenuBuilder { /* private fields */ }
Expand description
Menu item builder.
Implementations§
Source§impl MenuBuilder
impl MenuBuilder
Sourcepub fn with_item(self, item: MenuItem) -> MenuBuilder
pub fn with_item(self, item: MenuItem) -> MenuBuilder
Sourcepub fn build(self, ctx: &impl ContextOwner) -> Menu
pub fn build(self, ctx: &impl ContextOwner) -> Menu
Trait Implementations§
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