pub struct Tabs<'a> {
pub titles: &'a [&'a str],
pub selected: usize,
pub style: Style,
pub highlight_style: Style,
pub divider: &'a str,
}Fields§
§titles: &'a [&'a str]§selected: usize§style: Style§highlight_style: Style§divider: &'a strImplementations§
Source§impl<'a> Tabs<'a>
impl<'a> Tabs<'a>
pub fn new(titles: &'a [&'a str]) -> Self
pub fn with_selected(self, selected: usize) -> Self
pub fn with_style(self, style: Style) -> Self
pub fn with_highlight_style(self, style: Style) -> Self
pub fn select_next(&mut self)
pub fn select_prev(&mut self)
pub fn render_with_interaction( &self, buffer: &mut Buffer, area: Rect, layer: &mut InteractionLayer, region_id: impl Into<WidgetId>, )
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