pub struct NodeId { /* private fields */ }Expand description
Generation-checked handle to a node inside the flat SceneTree arena.
Implementations§
Trait Implementations§
Source§impl Component for NodeId
Zero-overhead Component implementation returning an already-mounted NodeId unchanged.
impl Component for NodeId
Zero-overhead Component implementation returning an already-mounted NodeId unchanged.
impl Copy for NodeId
impl Eq for NodeId
Source§impl Lifecycle for NodeId
No-op Lifecycle implementation allowing raw NodeId handles to participate seamlessly in Component APIs.
impl Lifecycle for NodeId
No-op Lifecycle implementation allowing raw NodeId handles to participate seamlessly in Component APIs.
Source§fn retention_policy(&self) -> PageRetention
fn retention_policy(&self) -> PageRetention
Declares how the framework retains this page or component when navigating away. Read more
Source§fn on_create(&self)
fn on_create(&self)
Invoked once immediately before the component’s initial
render pass executes. Read moreSource§fn on_update(&self, _node: NodeId)
fn on_update(&self, _node: NodeId)
Invoked when external props, theme tokens, or cross-page state trigger a component update. Read more
Source§fn on_activate(&self, _node: NodeId)
fn on_activate(&self, _node: NodeId)
Invoked whenever this component or routed page becomes the active visible view. Read more
Source§fn on_freeze(&self, _node: NodeId)
fn on_freeze(&self, _node: NodeId)
Invoked when the router or parent suspends this subtree under
PageRetention::Freeze. Read moreSource§fn on_resume(&self, _node: NodeId)
fn on_resume(&self, _node: NodeId)
Invoked when a previously frozen subtree resumes and coalesced cross-page updates flush. Read more
Source§fn on_unmount(&self, _node: NodeId)
fn on_unmount(&self, _node: NodeId)
Invoked immediately before the subtree is detached and its reactive scope is disposed. Read more
Source§fn on_destroy(&self)
fn on_destroy(&self)
Invoked after the component’s reactive scope and child nodes have been fully destroyed. Read more
Source§impl NodeRefTarget for NodeId
NodeRefTarget implementation storing a NodeId directly into a mutable local binding.
impl NodeRefTarget for NodeId
NodeRefTarget implementation storing a NodeId directly into a mutable local binding.
Source§fn bind_node_ref(&mut self, id: NodeId)
fn bind_node_ref(&mut self, id: NodeId)
Source§impl Ord for NodeId
impl Ord for NodeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Forget for NodeId
impl Freeze for NodeId
impl Move for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnsafeUnpin for NodeId
impl UnwindSafe for NodeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more