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

Method next

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

Source from the content-addressed store, hash-verified

275 type Item = Result<SerializedGraphEdge, PristineError>;
276
277 fn next(&mut self) -> Option<Self::Item> {
278 if self.index < self.edges.len() {
279 let edge = self.edges[self.index];
280 self.index += 1;
281 Some(Ok(edge))
282 } else {
283 None
284 }
285 }
286
287 fn size_hint(&self) -> (usize, Option<usize>) {
288 let remaining = self.edges.len() - self.index;

Callers 10

try_is_presentFunction · 0.45
attach_turn_boundaryMethod · 0.45
put_changeMethod · 0.45
del_changeMethod · 0.45
reinsert_changeMethod · 0.45
test_del_changeFunction · 0.45
test_reinsert_changeFunction · 0.45
get_file_index_v2Method · 0.45

Calls 1

lenMethod · 0.45

Tested by 2

test_del_changeFunction · 0.36
test_reinsert_changeFunction · 0.36