MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-core/src/apply/workspace.rs:106–113  ·  view source on GitHub ↗

Create a new pending edge. # Arguments `from` - Source position `to` - Destination position `flag` - Edge flags

(from: Position<NodeId>, to: Position<NodeId>, flag: EdgeFlags)

Source from the content-addressed store, hash-verified

104 /// * `to` - Destination position
105 /// * `flag` - Edge flags
106 pub fn new(from: Position<NodeId>, to: Position<NodeId>, flag: EdgeFlags) -> Self {
107 Self {
108 from,
109 to,
110 flag,
111 introduced_by: None,
112 }
113 }
114
115 /// Create a pending edge with an introduced_by reference.
116 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected