pub struct StaticMenu {
pub menu: &'static [(&'static str, &'static [&'static str])],
}
Expand description
Static menu structure.
Fields§
Array of menus + array of items.
MenuItems
The first ‘_’ marks the navigation-char.
Separator
This uses _
(underscore) as prefix and
a fixed string to identify the separator:
_
- three blanks -> empty separator____
- three underscores -> plain line_______
- six underscore -> thick line_===
- three equals -> double line_---
- three hyphen -> dashed line_...
- three dots -> dotted line
Trait Implementations§
Source§impl Debug for StaticMenu
impl Debug for StaticMenu
Source§impl MenuStructure<'static> for StaticMenu
impl MenuStructure<'static> for StaticMenu
Main menu.
Submenus.
Auto Trait Implementations§
impl Freeze for StaticMenu
impl RefUnwindSafe for StaticMenu
impl Send for StaticMenu
impl Sync for StaticMenu
impl Unpin for StaticMenu
impl UnwindSafe for StaticMenu
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
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