pub struct EuvSidebarItem {
pub text: &'static str,
pub link: Option<&'static str>,
pub children: &'static [EuvSidebarItem],
}Expand description
One node of the euv_sidebar navigation tree.
A node with empty children is a leaf link; a node with children is a
collapsible group whose link (when set) navigates to the group index
page without toggling the group.
Fields§
§text: &'static strThe display text.
link: Option<&'static str>The leaf route; groups may link to their index page.
children: &'static [EuvSidebarItem]Nested children (non-empty renders a collapsible group).
Implementations§
Source§impl EuvSidebarItem
impl EuvSidebarItem
pub fn get_text(&self) -> &'static str
pub fn get_mut_text(&mut self) -> &mut &'static str
pub fn set_text(&mut self, val: &'static str) -> &mut Self
pub fn get_link(&self) -> Option<&'static str>
pub fn try_get_link(&self) -> Option<&'static str>
pub fn get_mut_link(&mut self) -> &mut Option<&'static str>
pub fn set_link(&mut self, val: Option<&'static str>) -> &mut Self
pub fn get_children(&self) -> &'static [EuvSidebarItem]
pub fn get_mut_children(&mut self) -> &mut &'static [EuvSidebarItem]
pub fn set_children(&mut self, val: &'static [EuvSidebarItem]) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvSidebarItem
impl Clone for EuvSidebarItem
Source§fn clone(&self) -> EuvSidebarItem
fn clone(&self) -> EuvSidebarItem
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 moreimpl Copy for EuvSidebarItem
Source§impl Debug for EuvSidebarItem
impl Debug for EuvSidebarItem
Source§impl Default for EuvSidebarItem
impl Default for EuvSidebarItem
Source§fn default() -> EuvSidebarItem
fn default() -> EuvSidebarItem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EuvSidebarItem
impl RefUnwindSafe for EuvSidebarItem
impl Send for EuvSidebarItem
impl Sync for EuvSidebarItem
impl Unpin for EuvSidebarItem
impl UnsafeUnpin for EuvSidebarItem
impl UnwindSafe for EuvSidebarItem
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