Skip to main content

euv_core/scene/id/
struct.rs

1use super::*;
2
3/// Generation-checked handle to a node inside the flat `SceneTree` arena.
4#[derive(Clone, Copy, Debug, Default, Eq, Getter, Hash, New, Ord, PartialEq, PartialOrd)]
5pub struct NodeId {
6    /// Zero-based slot index inside the scene arena.
7    #[get(type(copy))]
8    pub(crate) index: u32,
9    /// Generation counter guarding against stale node references.
10    #[get(type(copy))]
11    pub(crate) generation: u32,
12}