pub struct Tab {
pub label: String,
pub icon: Option<View>,
pub on_click: Rc<dyn Fn()>,
pub enabled: bool,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
A single tab definition for use with TabRow.
Fields§
§label: String§icon: Option<View>§on_click: Rc<dyn Fn()>§enabled: bool§interaction_source: Option<MutableInteractionSource>Auto Trait Implementations§
impl !RefUnwindSafe for Tab
impl !Send for Tab
impl !Sync for Tab
impl !UnwindSafe for Tab
impl Freeze for Tab
impl Unpin for Tab
impl UnsafeUnpin for Tab
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