pub struct ElementTreeId(/* private fields */);Expand description
Stable identity of one retained element tree.
ElementId values are only unique within a tree, so popup ownership always
carries both identifiers.
Zero is a valid compatibility namespace and no value is reserved by the
type itself.
§Examples
use ailloli_ui_runtime::popup::ElementTreeId;
assert_eq!(ElementTreeId::new(7).get(), 7);Implementations§
Trait Implementations§
Source§impl Clone for ElementTreeId
impl Clone for ElementTreeId
Source§fn clone(&self) -> ElementTreeId
fn clone(&self) -> ElementTreeId
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 ElementTreeId
impl Debug for ElementTreeId
Source§impl Hash for ElementTreeId
impl Hash for ElementTreeId
Source§impl Ord for ElementTreeId
impl Ord for ElementTreeId
Source§fn cmp(&self, other: &ElementTreeId) -> Ordering
fn cmp(&self, other: &ElementTreeId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ElementTreeId
impl PartialEq for ElementTreeId
Source§impl PartialOrd for ElementTreeId
impl PartialOrd for ElementTreeId
impl Copy for ElementTreeId
impl Eq for ElementTreeId
impl StructuralPartialEq for ElementTreeId
Auto Trait Implementations§
impl Freeze for ElementTreeId
impl RefUnwindSafe for ElementTreeId
impl Send for ElementTreeId
impl Sync for ElementTreeId
impl Unpin for ElementTreeId
impl UnwindSafe for ElementTreeId
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.