Struct perspective_viewer::components::containers::tab_list::TabListProps
source · pub struct TabListProps<T: Tab> {
pub tabs: Vec<T>,
pub on_tab_change: Callback<(usize, T)>,
pub selected_tab: Option<usize>,
pub children: Children,
}Fields§
§tabs: Vec<T>§on_tab_change: Callback<(usize, T)>§selected_tab: Option<usize>§children: ChildrenTrait Implementations§
source§impl<T: Tab> Properties for TabListProps<T>
impl<T: Tab> Properties for TabListProps<T>
impl<T: Tab> StructuralPartialEq for TabListProps<T>
Auto Trait Implementations§
impl<T> Freeze for TabListProps<T>
impl<T> !RefUnwindSafe for TabListProps<T>
impl<T> !Send for TabListProps<T>
impl<T> !Sync for TabListProps<T>
impl<T> Unpin for TabListProps<T>where
T: Unpin,
impl<T> !UnwindSafe for TabListProps<T>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moresource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.