pub struct NodeInstantiation {
pub node_id: NodeId,
pub node: Node,
pub ports: Vec<(PortId, Port)>,
}Expand description
Concrete graph records produced from a node schema.
Fields§
§node_id: NodeIdAllocated node id.
node: NodeNode record to add to the graph.
ports: Vec<(PortId, Port)>Port records to add to the graph, in schema/UI order.
Implementations§
Source§impl NodeInstantiation
impl NodeInstantiation
Sourcepub fn into_parts(self) -> (NodeId, Node, Vec<(PortId, Port)>)
pub fn into_parts(self) -> (NodeId, Node, Vec<(PortId, Port)>)
Consumes this instantiation into graph records.
Sourcepub fn into_ops(self) -> Vec<GraphOp>
pub fn into_ops(self) -> Vec<GraphOp>
Consumes this instantiation into add-node/add-port operations.
Sourcepub fn into_transaction(self) -> GraphTransaction
pub fn into_transaction(self) -> GraphTransaction
Consumes this instantiation into an unlabeled graph transaction.
Sourcepub fn into_labeled_transaction(
self,
label: impl Into<String>,
) -> GraphTransaction
pub fn into_labeled_transaction( self, label: impl Into<String>, ) -> GraphTransaction
Consumes this instantiation into a labeled graph transaction.
Trait Implementations§
Source§impl Clone for NodeInstantiation
impl Clone for NodeInstantiation
Source§fn clone(&self) -> NodeInstantiation
fn clone(&self) -> NodeInstantiation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NodeInstantiation
impl RefUnwindSafe for NodeInstantiation
impl Send for NodeInstantiation
impl Sync for NodeInstantiation
impl Unpin for NodeInstantiation
impl UnsafeUnpin for NodeInstantiation
impl UnwindSafe for NodeInstantiation
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