pub struct Node {
pub id: NodeId,
pub type_name: String,
pub name: String,
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub props: Props,
pub script: Option<ScriptRef>,
}Expand description
A node record. Data only: behaviour lives in crate::NodeTypeRegistry and
crate::LifecycleSink, so the tree stays free of subsystem types.
The tree owns the structural invariants (parent/children agreement); treat
these fields as owned by crate::NodeTree.
Fields§
§id: NodeId§type_name: String§name: String§parent: Option<NodeId>§children: Vec<NodeId>§props: Props§script: Option<ScriptRef>Implementations§
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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