pub struct Sections { /* private fields */ }Expand description
Collapsible sidebar sections (docs/navigation.md), declared with Nav::sections. The
state is the set of COLLAPSED section ids; missing ids default to expanded, and temporarily
filtered-out ids are retained. Pair with Nav::section_id for stable identities; unkeyed
headings use their first route as a fallback identity. Takes precedence over
Nav::reorder_items; combined collapse/reordering is not supported.
Implementations§
Source§impl Sections
impl Sections
Sourcepub fn collapsible(collapsed: impl Binding<HashSet<String>>) -> Sections
pub fn collapsible(collapsed: impl Binding<HashSet<String>>) -> Sections
Sections whose collapsed set is app state (a Signal<HashSet<String>> or any binding).
Auto Trait Implementations§
impl !RefUnwindSafe for Sections
impl !Send for Sections
impl !Sync for Sections
impl !UnwindSafe for Sections
impl Freeze for Sections
impl Unpin for Sections
impl UnsafeUnpin for Sections
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more