euv-core 0.48.1

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

/// Generation-checked handle to a node inside the flat `SceneTree` arena.
#[derive(Clone, Copy, Debug, Default, Eq, Getter, Hash, New, Ord, PartialEq, PartialOrd)]
pub struct NodeId {
    /// Zero-based slot index inside the scene arena.
    #[get(type(copy))]
    pub(crate) index: u32,
    /// Generation counter guarding against stale node references.
    #[get(type(copy))]
    pub(crate) generation: u32,
}