pub struct Tabs<'a> { /* private fields */ }Implementations§
Source§impl<'a> Tabs<'a>
impl<'a> Tabs<'a>
pub fn new(selected: &'a mut usize) -> Self
Sourcepub fn tab(self, label: impl Into<WidgetText>) -> Self
pub fn tab(self, label: impl Into<WidgetText>) -> Self
Append a single tab.
Sourcepub fn disabled_tab(self, label: impl Into<WidgetText>) -> Self
pub fn disabled_tab(self, label: impl Into<WidgetText>) -> Self
Append a disabled tab — still rendered, never selectable via click.
pub fn variant(self, v: TabVariant) -> Self
pub fn underline(self) -> Self
pub fn pill(self) -> Self
pub fn segmented(self) -> Self
pub fn size(self, s: Size) -> Self
pub fn small(self) -> Self
pub fn large(self) -> Self
pub fn show(self, ui: &mut Ui) -> Response
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Tabs<'a>
impl<'a> RefUnwindSafe for Tabs<'a>
impl<'a> Send for Tabs<'a>
impl<'a> Sync for Tabs<'a>
impl<'a> Unpin for Tabs<'a>
impl<'a> UnsafeUnpin for Tabs<'a>
impl<'a> !UnwindSafe for Tabs<'a>
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