pub struct NavigationItemScope { /* private fields */ }Expand description
A NavigationItem and its builder.
Implementations§
pub fn icon(self, icon: IconRole) -> Self
pub fn color(self, paint: Paint) -> Self
pub fn enabled(self, enabled: bool) -> Self
Sourcepub fn section(self, section: impl Into<String>) -> Self
pub fn section(self, section: impl Into<String>) -> Self
The named group of the strip this destination belongs to.
pub fn on_click(self, handler: impl FnMut() + 'static) -> Self
Trait Implementations§
Auto Trait Implementations§
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