pub struct SidenavSection<'a> {
pub label: &'a str,
pub items: &'a [SidenavItem<'a>],
}Fields§
§label: &'a str§items: &'a [SidenavItem<'a>]Implementations§
pub const fn new(label: &'a str, items: &'a [SidenavItem<'a>]) -> Self
Trait Implementations§
Source§fn clone(&self) -> SidenavSection<'a>
fn clone(&self) -> SidenavSection<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn eq(&self, other: &SidenavSection<'a>) -> bool
fn eq(&self, other: &SidenavSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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