Skip to main content

MenuContent

Trait MenuContent 

Source
pub trait MenuContent<M> {
    // Required method
    fn into_source(self) -> MenuSource;
}
Expand description

Anything an app menu takes: a Vec or array of entries, or a closure that derives the entries and re-runs whenever its reactive reads change. The marker parameter is the same E0119 dodge as ToolbarContent.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl MenuContent<ManyMark> for Vec<MenuEntry>

Source§

impl<const N: usize> MenuContent<ManyMark> for [MenuEntry; N]

Implementors§

Source§

impl<C, F> MenuContent<DerivedMark> for F
where C: IntoIterator<Item = MenuEntry>, F: Fn() -> C + 'static,

Day API ↩ Guides· daybrite.dev