pub struct SidebarBuilder<'a> { /* private fields */ }Expand description
Builder for adding items to the sidebar
Implementations§
Source§impl SidebarBuilder<'_>
impl SidebarBuilder<'_>
Sourcepub fn item(&mut self, icon: &str, label: &str) -> SidebarItemBuilder<'_>
pub fn item(&mut self, icon: &str, label: &str) -> SidebarItemBuilder<'_>
Add an item to the sidebar
Returns a builder that can be used to configure the item with chained methods.
The builder holds a mutable reference to the item, so changes like .badge() and .active()
are applied directly to the item in the list.
Sourcepub fn group_label(&mut self, label: &str)
pub fn group_label(&mut self, label: &str)
Add a group label (non-interactive header text)
Auto Trait Implementations§
impl<'a> Freeze for SidebarBuilder<'a>
impl<'a> RefUnwindSafe for SidebarBuilder<'a>
impl<'a> Send for SidebarBuilder<'a>
impl<'a> Sync for SidebarBuilder<'a>
impl<'a> Unpin for SidebarBuilder<'a>
impl<'a> UnsafeUnpin for SidebarBuilder<'a>
impl<'a> !UnwindSafe for SidebarBuilder<'a>
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