1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
use super::*; /// No-op `Lifecycle` implementation allowing raw `NodeId` handles to participate seamlessly in `Component` APIs. impl Lifecycle for NodeId {} /// Zero-overhead `Component` implementation returning an already-mounted `NodeId` unchanged. impl Component for NodeId { /// Returns this `NodeId` handle unchanged. /// /// # Arguments /// /// - `&Self` - Already-mounted scene node handle. /// /// # Returns /// /// - `NodeId` - Same scene node handle. fn render(&self) -> NodeId { *self } /// Returns this `NodeId` directly without heap allocation or duplicate lifecycle attachment. /// /// # Arguments /// /// - `Self` - Already-mounted scene node handle. /// /// # Returns /// /// - `NodeId` - Same scene node handle. fn mount(self) -> NodeId { self } }