pub struct DocumentTab<T: 'static> { /* private fields */ }Expand description
A tab of DocumentTabs: its title, and the value choosing it gives
the tabs’ selection.
In view!, its text is its title:
<DocumentTab value=1>"notes.txt"</DocumentTab>.
Implementations§
Source§impl<T: 'static> DocumentTab<T>
impl<T: 'static> DocumentTab<T>
pub fn new(title: impl IntoValue<String>, value: T) -> DocumentTab<T>
pub fn title(self, title: impl IntoValue<String>) -> DocumentTab<T>
Sourcepub fn value<U: 'static>(self, value: U) -> DocumentTab<U>
pub fn value<U: 'static>(self, value: U) -> DocumentTab<U>
The value choosing it gives the tabs’ selection.
Trait Implementations§
Source§impl<T: 'static> DocumentTabsChildren<T> for DocumentTab<T>
impl<T: 'static> DocumentTabsChildren<T> for DocumentTab<T>
fn add_to(self, tabs: &mut Vec<DocumentTab<T>>)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DocumentTab<T>
impl<T> !Send for DocumentTab<T>
impl<T> !Sync for DocumentTab<T>
impl<T> !UnwindSafe for DocumentTab<T>
impl<T> Freeze for DocumentTab<T>where
T: Freeze,
impl<T> Unpin for DocumentTab<T>where
T: Unpin,
impl<T> UnsafeUnpin for DocumentTab<T>where
T: UnsafeUnpin,
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