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>where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<dyn Fn() -> String> is !null: Freeze,
PhantomData<RcInner<dyn Fn() -> String>>: Freeze,
PhantomData<SidebarItem<T>>: Freeze,
impl<T> Move for SidebarSection<T>
impl<T> Unpin for SidebarSection<T>
impl<T> UnsafeUnpin for SidebarSection<T>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Fn() -> String> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> String>>: UnsafeUnpin,
PhantomData<SidebarItem<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