pub struct PopupMountHit { /* private fields */ }Expand description
Element hit in one popup tree, including its tree namespace.
IDs are copyable snapshots. Element identity is meaningful only together
with element_tree_id; the popup may be removed after this value is returned.
§Examples
use ailloli_ui_runtime::popup_mount::PopupMountHit;
fn inspect(hit: PopupMountHit) { let _ = (hit.popup_id(), hit.element_tree_id(), hit.element_id()); }
let _ = inspect;Implementations§
Source§impl PopupMountHit
Identity accessors for a retained popup hit.
impl PopupMountHit
Identity accessors for a retained popup hit.
Sourcepub const fn popup_id(self) -> PopupId
pub const fn popup_id(self) -> PopupId
Returns the popup registration ID.
§Examples
use ailloli_ui_runtime::{popup::PopupId, popup_mount::PopupMountHit};
fn popup(hit: PopupMountHit) -> PopupId { hit.popup_id() }
let _ = popup;Sourcepub const fn element_tree_id(self) -> ElementTreeId
pub const fn element_tree_id(self) -> ElementTreeId
Returns the retained-tree namespace.
§Examples
use ailloli_ui_runtime::{popup::ElementTreeId, popup_mount::PopupMountHit};
fn tree(hit: PopupMountHit) -> ElementTreeId { hit.element_tree_id() }
let _ = tree;Sourcepub const fn element_id(self) -> ElementId
pub const fn element_id(self) -> ElementId
Returns the tree-local element ID.
§Examples
use ailloli_ui_core::ElementId; use ailloli_ui_runtime::popup_mount::PopupMountHit;
fn element(hit: PopupMountHit) -> ElementId { hit.element_id() }
let _ = element;Trait Implementations§
Source§impl Clone for PopupMountHit
impl Clone for PopupMountHit
Source§fn clone(&self) -> PopupMountHit
fn clone(&self) -> PopupMountHit
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PopupMountHit
impl Debug for PopupMountHit
Source§impl PartialEq for PopupMountHit
impl PartialEq for PopupMountHit
impl Copy for PopupMountHit
impl Eq for PopupMountHit
impl StructuralPartialEq for PopupMountHit
Auto Trait Implementations§
impl Freeze for PopupMountHit
impl RefUnwindSafe for PopupMountHit
impl Send for PopupMountHit
impl Sync for PopupMountHit
impl Unpin for PopupMountHit
impl UnwindSafe for PopupMountHit
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.