pub struct TabBarContext<PanelId> {
pub panel_id: PanelId,
pub tab_children: Vec<Element>,
pub tab_count: usize,
}Expand description
Passed to the render_tab_bar callback.
Fields§
§panel_id: PanelId§tab_children: Vec<Element>The tab header elements to lay out in the bar.
tab_count: usizeNumber of tabs open in the panel.
Auto Trait Implementations§
impl<PanelId> Freeze for TabBarContext<PanelId>where
PanelId: Freeze,
impl<PanelId> !RefUnwindSafe for TabBarContext<PanelId>
impl<PanelId> !Send for TabBarContext<PanelId>
impl<PanelId> !Sync for TabBarContext<PanelId>
impl<PanelId> Unpin for TabBarContext<PanelId>where
PanelId: Unpin,
impl<PanelId> UnsafeUnpin for TabBarContext<PanelId>where
PanelId: UnsafeUnpin,
impl<PanelId> !UnwindSafe for TabBarContext<PanelId>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more