pub enum TabBarVariant {
Primary,
Secondary,
}Expand description
Which of the two tab bars this is.
They differ in more than looks: a primary bar marks the selected tab with an indicator as wide as its label, and a secondary bar with one as wide as the whole tab. A primary bar is for the top level of a screen, a secondary one for a division inside it.
Variants§
Primary
Label-wide indicator, rounded at the top; the selected label takes the accent.
Secondary
Tab-wide indicator, square.
Trait Implementations§
Source§impl Clone for TabBarVariant
impl Clone for TabBarVariant
impl Copy for TabBarVariant
Source§impl Debug for TabBarVariant
impl Debug for TabBarVariant
Source§impl Default for TabBarVariant
impl Default for TabBarVariant
impl Eq for TabBarVariant
Source§impl PartialEq for TabBarVariant
impl PartialEq for TabBarVariant
impl StructuralPartialEq for TabBarVariant
Auto Trait Implementations§
impl Freeze for TabBarVariant
impl RefUnwindSafe for TabBarVariant
impl Send for TabBarVariant
impl Sync for TabBarVariant
impl Unpin for TabBarVariant
impl UnsafeUnpin for TabBarVariant
impl UnwindSafe for TabBarVariant
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