#[non_exhaustive]pub enum PopupRole {
Generic,
Listbox,
Menu,
Tooltip,
Dialog,
}Expand description
Semantic role exposed by a popup independently from its presentation.
§Examples
use ailloli_ui_runtime::popup::PopupRole;
assert_eq!(PopupRole::default(), PopupRole::Generic);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic
Popup with no more specific semantic category.
Listbox
Selectable list of options.
Menu
Command/action menu.
Tooltip
Non-interactive explanatory tooltip.
Dialog
Modal dialog whose retained descendants own focus until dismissal.
Trait Implementations§
impl Copy for PopupRole
impl Eq for PopupRole
impl StructuralPartialEq for PopupRole
Auto Trait Implementations§
impl Freeze for PopupRole
impl RefUnwindSafe for PopupRole
impl Send for PopupRole
impl Sync for PopupRole
impl Unpin for PopupRole
impl UnwindSafe for PopupRole
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.