Struct rat_widget::menubar::StaticMenu
source · pub struct StaticMenu {
pub menu: &'static [(&'static str, &'static [&'static str])],
}Expand description
Static menu structure.
Uses _ (underscore) to mark the navigation character.
You can add separators too. 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
Fields§
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