pub struct LiquidTabBarScope { /* private fields */ }Expand description
The scope a tab bar’s destinations are declared in.
Each call adds one destination, in the order it is made, which is also the
order the indices passed to on_select count in.
Implementations§
Source§impl LiquidTabBarScope
impl LiquidTabBarScope
Sourcepub fn tab(&self, icon: &'static str, label: impl Into<SharedText>)
pub fn tab(&self, icon: &'static str, label: impl Into<SharedText>)
A destination showing icon above label.
Sourcepub fn app_badge(&self, icon: &'static str, label: impl Into<SharedText>)
pub fn app_badge(&self, icon: &'static str, label: impl Into<SharedText>)
A destination whose icon is drawn as an application badge.
Auto Trait Implementations§
impl !RefUnwindSafe for LiquidTabBarScope
impl !Send for LiquidTabBarScope
impl !Sync for LiquidTabBarScope
impl !UnwindSafe for LiquidTabBarScope
impl Freeze for LiquidTabBarScope
impl Unpin for LiquidTabBarScope
impl UnsafeUnpin for LiquidTabBarScope
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