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

Method mark_rooted

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

Mark a position as verified rooted.

(&mut self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

639
640 /// Mark a position as verified rooted.
641 pub fn mark_rooted(&mut self, pos: Position<NodeId>) {
642 self.rooted.insert(pos);
643 }
644
645 /// Check if a position has been verified as rooted.
646 pub fn is_rooted(&self, pos: &Position<NodeId>) -> bool {

Callers 6

write_new_edgeFunction · 0.80
write_new_vertexFunction · 0.80
test_workspace_rootedFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by 4

test_workspace_rootedFunction · 0.64