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

Method add_connected_by

atomic-core/src/apply/conflict.rs:137–141  ·  view source on GitHub ↗

Add a change that connected to this span.

(&mut self, change: NodeId)

Source from the content-addressed store, hash-verified

135
136 /// Add a change that connected to this span.
137 pub fn add_connected_by(&mut self, change: NodeId) {
138 if !self.connected_by.contains(&change) {
139 self.connected_by.push(change);
140 }
141 }
142
143 /// Set the file inode.
144 pub fn with_inode(mut self, inode: Position<NodeId>) -> Self {

Calls 2

containsMethod · 0.45
pushMethod · 0.45