pub struct ElementId(pub u32);Expand description
Interned, process-stable index for a registered theme element.
Allocated at registration; the hot-path read is
resolved.get(id) — an array index, no string hashing.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for ElementId
impl Eq for ElementId
Source§impl Ord for ElementId
impl Ord for ElementId
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 ElementId
impl PartialOrd for ElementId
impl StructuralPartialEq for ElementId
Auto Trait Implementations§
impl Freeze for ElementId
impl RefUnwindSafe for ElementId
impl Send for ElementId
impl Sync for ElementId
impl Unpin for ElementId
impl UnsafeUnpin for ElementId
impl UnwindSafe for ElementId
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