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

Method next

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

Source from the content-addressed store, hash-verified

199 type Item = Result<SerializedGraphEdge, PristineError>;
200
201 fn next(&mut self) -> Option<Self::Item> {
202 if self.index < self.edges.len() {
203 let edge = self.edges[self.index];
204 self.index += 1;
205 Some(Ok(edge))
206 } else {
207 None
208 }
209 }
210
211 fn size_hint(&self) -> (usize, Option<usize>) {
212 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