pub struct PopupId(/* private fields */);Expand description
Stable identity of one popup registration.
The value type does not allocate or reserve identifiers. PopupPortal
allocates one-based checked IDs, while callers may explicitly construct zero.
§Examples
use ailloli_ui_runtime::popup::PopupId;
assert_eq!(PopupId::new(1).get(), 1);Implementations§
Trait Implementations§
Source§impl Ord for PopupId
impl Ord for PopupId
Source§impl PartialOrd for PopupId
impl PartialOrd for PopupId
impl Copy for PopupId
impl Eq for PopupId
impl StructuralPartialEq for PopupId
Auto Trait Implementations§
impl Freeze for PopupId
impl RefUnwindSafe for PopupId
impl Send for PopupId
impl Sync for PopupId
impl Unpin for PopupId
impl UnwindSafe for PopupId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.