pub struct TabItem { /* private fields */ }Implementations§
Source§impl TabItem
impl TabItem
pub fn new(label: impl Into<String>) -> Self
pub fn with_content( label: impl Into<String>, factory: impl FnOnce() -> RetainedView + 'static, ) -> Self
pub fn with_content_view(label: impl Into<String>, view: RetainedView) -> Self
pub fn label_text(&self) -> String
pub fn description_text(&self) -> String
pub fn is_enabled(&self) -> bool
pub fn is_materialized(&self) -> bool
pub fn label(&self, value: impl Into<String>) -> &Self
pub fn description(&self, value: impl Into<String>) -> &Self
pub fn enabled(&self, enabled: bool) -> &Self
pub fn content(&self, factory: impl FnOnce() -> RetainedView + 'static) -> &Self
pub fn content_view(&self, view: RetainedView) -> &Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TabItem
impl !Send for TabItem
impl !Sync for TabItem
impl !UnwindSafe for TabItem
impl Freeze for TabItem
impl Unpin for TabItem
impl UnsafeUnpin for TabItem
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