pub struct BottomNavItem { /* private fields */ }Expand description
One destination in a BottomNavigationBar.
Implementations§
pub fn new(label: impl Into<String>) -> Self
Sourcepub fn icon(self, w: impl Widget + 'static) -> Self
pub fn icon(self, w: impl Widget + 'static) -> Self
Icon shown above the label (any widget — usually super::Icon).
pub fn badge(self, n: u32) -> Self
pub fn active(self) -> Self
pub fn on_press(self, f: impl Fn() + Send + Sync + 'static) -> Self
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