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

Method next

atomic-core/src/pristine/txn/helpers.rs:182–190  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

180 type Item = Result<SerializedGraphEdge, PristineError>;
181
182 fn next(&mut self) -> Option<Self::Item> {
183 if self.index < self.edges.len() {
184 let edge = self.edges[self.index];
185 self.index += 1;
186 Some(Ok(edge))
187 } else {
188 None
189 }
190 }
191
192 fn size_hint(&self) -> (usize, Option<usize>) {
193 let remaining = self.edges.len() - self.index;

Callers 15

find_block_endMethod · 0.45
has_vertexMethod · 0.45
has_change_in_graphMethod · 0.45
find_block_endMethod · 0.45
has_vertexMethod · 0.45
has_change_in_graphMethod · 0.45
put_changeMethod · 0.45
del_changeMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by 2

test_del_changeFunction · 0.36
test_reinsert_changeFunction · 0.36