MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / next

Method next

nodedb-columnar/src/memtable/mod.rs:245–255  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

243 type Item = Vec<Value>;
244
245 fn next(&mut self) -> Option<Self::Item> {
246 if self.current >= self.row_count {
247 return None;
248 }
249 let mut row = Vec::with_capacity(self.columns.len());
250 for col in self.columns {
251 row.push(col.get_value(self.current));
252 }
253 self.current += 1;
254 Some(row)
255 }
256
257 fn size_hint(&self) -> (usize, Option<usize>) {
258 let remaining = self.row_count - self.current;

Callers

nothing calls this directly

Calls 3

get_valueMethod · 0.80
lenMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected