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

Method next_inode_adj

atomic-core/src/pristine/view_graph.rs:94–113  ·  view source on GitHub ↗
(
        &self,
        adj: &mut InodeAdjState,
    )

Source from the content-addressed store, hash-verified

92 }
93
94 fn next_inode_adj(
95 &self,
96 adj: &mut InodeAdjState,
97 ) -> Option<Result<SerializedGraphEdge, Self::InodeError>> {
98 // Filter inode edges by the view's visible change set,
99 // same as iter_adjacent does for the global GRAPH.
100 loop {
101 match self.inner.next_inode_adj(adj) {
102 Some(Ok(edge)) => {
103 let introduced = edge.introduced_by();
104 if introduced.is_root() || self.visible.contains(&introduced) {
105 return Some(Ok(edge));
106 }
107 // Edge from a non-visible change — skip it
108 continue;
109 }
110 other => return other,
111 }
112 }
113 }
114
115 fn find_block_in_inode(
116 &self,

Callers

nothing calls this directly

Calls 3

introduced_byMethod · 0.45
is_rootMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected