pub fn menu(
        mut self,
        menu: impl FnMut(Option<WindowId>, &T, &Env) -> Menu<T> + 'static,
    ) -> Self {
        self.pending = self.pending.menu(menu);
        self
    }
/// Set the menu for this window.
///
/// `menu` is a callback for creating the menu. Its first argument is the id of the window that
/// will have the menu, or `None` if it's creating the root application menu for an app with no
/// menus (which can happen, for example, on macOS).
Set the menu for this window.
`menu` is a callback for creating the menu. Its first argument is the id of the window that
will have the menu, or `None` if it's creating the root application menu for an app with no
menus (which can happen, for example, on macOS).
Set the menu for this window . ` menu ` is a callback for creating the menu . Its first argument is the id of the window that will have the menu or ` None ` if it ' s creating the root application menu for an app with no menus ( which can happen for example on macOS ) .
pub fn menu(
        mut self,
        menu: impl FnMut(Option<WindowId>, &T, &Env) -> Menu<T> + 'static,
    ) -> Self {
        self.pending = self.pending.menu(menu);
        self
    }
pub fn menu ( mut self , menu : impl FnMut ( Option < WindowId > , & T , & Env ) -> Menu < T > + ' static , ) -> Self { self . pending = self . pending . menu ( menu ) ; self }
Set the menu for this window.
Set the menu for this window .
mut self
menu
impl FnMut(Option<WindowId>, &T, &Env) -> Menu<T> + 'static
mut self
menu
impl FnMut(Option<WindowId>, &T, &Env) -> Menu<T> + 'static