pub struct WidgetId(pub u64);Expand description
A stable, unique identifier for a node within a single WidgetTree.
IDs are allocated monotonically by WidgetIdAllocator and never reused
within the lifetime of one allocator, guaranteeing uniqueness.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Ord for WidgetId
impl Ord for WidgetId
1.21.0 (const: unstable) · 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 PartialOrd for WidgetId
impl PartialOrd for WidgetId
impl Copy for WidgetId
impl Eq for WidgetId
impl StructuralPartialEq for WidgetId
Auto Trait Implementations§
impl Freeze for WidgetId
impl RefUnwindSafe for WidgetId
impl Send for WidgetId
impl Sync for WidgetId
impl Unpin for WidgetId
impl UnsafeUnpin for WidgetId
impl UnwindSafe for WidgetId
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