ailloli_ui_core/ids/
widget_id.rs

1//! Widget-instance identity.
2
3/// Opaque numeric ID assigned to a widget instance for input routing and paint.
4///
5/// Zero has no special meaning at this type layer.
6///
7/// # Examples
8///
9/// ```
10/// use ailloli_ui_core::WidgetId;
11/// assert_eq!(WidgetId(9).0, 9);
12/// ```
13#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
14pub struct WidgetId(pub u64);