#[non_exhaustive]pub struct Tabs {
pub selection: Binding<Id>,
pub tabs: Vec<Tab<Id>>,
pub position: TabPosition,
}Expand description
Configuration for the Tabs component.
This struct holds the current tab selection and the collection of tabs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.selection: Binding<Id>The currently selected tab identifier.
tabs: Vec<Tab<Id>>The collection of tabs to display.
position: TabPositionPosition of the tab bar (top or bottom).
Trait Implementations§
Source§impl NativeView for Tabs
impl NativeView for Tabs
Source§fn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
Which axis (or axes) this view stretches to fill available space.
Auto Trait Implementations§
impl Freeze for Tabs
impl !RefUnwindSafe for Tabs
impl !Send for Tabs
impl !Sync for Tabs
impl Unpin for Tabs
impl !UnwindSafe for Tabs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more