ailloli_ui_core/ids/element_id.rs
1//! Reconciled element-tree identity.
2
3/// Opaque numeric ID of a node in the reconciled element tree.
4///
5/// The public payload supports allocation by the runtime; zero has no special
6/// meaning at this type layer.
7///
8/// # Examples
9///
10/// ```
11/// use ailloli_ui_core::ElementId;
12/// assert_eq!(ElementId(42).0, 42);
13/// ```
14#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
15pub struct ElementId(pub u64);