pub struct MenuRenderParams<'a> {
pub menu: &'a str,
pub submenus: &'a [String],
pub menuitem: Option<&'a str>,
pub parser: &'a Parser,
}Expand description
Provides parameters for rendering a menu UI macro.
Fields§
The top-level menu name.
Zero or more intermediate submenu names, in order from outermost to innermost.
The final menu item, if any. None renders a bare menu reference (a
menu:File[] with no items).
parser: &'a ParserParser, used to read the icons document attribute when choosing how to
render the caret between menu levels.
Trait Implementations§
Source§impl<'a> Clone for MenuRenderParams<'a>
impl<'a> Clone for MenuRenderParams<'a>
Source§fn clone(&self) -> MenuRenderParams<'a>
fn clone(&self) -> MenuRenderParams<'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 moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for MenuRenderParams<'a>
impl<'a> !Send for MenuRenderParams<'a>
impl<'a> !Sync for MenuRenderParams<'a>
impl<'a> !UnwindSafe for MenuRenderParams<'a>
impl<'a> Freeze for MenuRenderParams<'a>
impl<'a> Unpin for MenuRenderParams<'a>
impl<'a> UnsafeUnpin for MenuRenderParams<'a>
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