pub struct SidebarSection<T: 'static> { /* private fields */ }Expand description
A group of a Sidebar’s items, under a heading.
Implementations§
Source§impl<T: 'static> SidebarSection<T>
impl<T: 'static> SidebarSection<T>
pub fn new(title: impl IntoValue<String>) -> SidebarSection<T>
Sourcepub fn untitled() -> SidebarSection<T>
pub fn untitled() -> SidebarSection<T>
Without a heading.
pub fn title(self, title: impl IntoValue<String>) -> SidebarSection<T>
pub fn item(self, item: SidebarItem<T>) -> SidebarSection<T>
Sourcepub fn children(self, items: impl SidebarItems<T>) -> SidebarSection<T>
pub fn children(self, items: impl SidebarItems<T>) -> SidebarSection<T>
Its items, in order.
Trait Implementations§
Source§impl<T: 'static> SidebarEntries<T> for SidebarSection<T>
impl<T: 'static> SidebarEntries<T> for SidebarSection<T>
fn add_to(self, sections: &mut Vec<SidebarSection<T>>)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SidebarSection<T>
impl<T> !Send for SidebarSection<T>
impl<T> !Sync for SidebarSection<T>
impl<T> !UnwindSafe for SidebarSection<T>
impl<T> Forget for SidebarSection<T>
impl<T> Freeze for SidebarSection<T>
impl<T> Move for SidebarSection<T>
impl<T> Unpin for SidebarSection<T>
impl<T> UnsafeUnpin for SidebarSection<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