pub trait PopupMenuExt:
Styled
+ Selectable
+ InteractiveElement
+ IntoElement
+ 'static {
// Provided methods
fn popup_menu(
self,
f: impl Fn(PopupMenu, &mut Window, &mut Context<'_, PopupMenu>) -> PopupMenu + 'static,
) -> Popover<PopupMenu> { ... }
fn popup_menu_with_anchor(
self,
anchor: impl Into<Corner>,
f: impl Fn(PopupMenu, &mut Window, &mut Context<'_, PopupMenu>) -> PopupMenu + 'static,
) -> Popover<PopupMenu> { ... }
}
Provided Methods§
Create a popup menu with the given items, anchored to the TopLeft corner
Create a popup menu with the given items, anchored to the given corner
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.