pub struct TabsState {
pub labels: Vec<String>,
pub selected: usize,
}Expand description
State for a tab navigation widget.
Pass a mutable reference to Context::tabs each frame. Left/Right arrow
keys cycle through tabs when the widget is focused.
Fields§
§labels: Vec<String>The tab labels displayed in the bar.
selected: usizeIndex of the currently active tab.
Implementations§
Auto Trait Implementations§
impl Freeze for TabsState
impl RefUnwindSafe for TabsState
impl Send for TabsState
impl Sync for TabsState
impl Unpin for TabsState
impl UnsafeUnpin for TabsState
impl UnwindSafe for TabsState
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