MCPcopy Create free account
hub / github.com/git/git / iter

Method iter

src/loose.rs:363–376  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

361 }
362
363 fn iter(&self) -> MmapedObjectMapIter<'_> {
364 let mut algos = Vec::with_capacity(self.obj_formats.len());
365 algos.push(self.main_algo);
366 for algo in self.obj_formats.keys().cloned() {
367 if algo != self.main_algo {
368 algos.push(algo);
369 }
370 }
371 MmapedObjectMapIter {
372 offset: 0,
373 algos,
374 source: self,
375 }
376 }
377
378 /// Treats `sl` as if it were a set of slices of `wanted.len()` bytes, and searches for
379 /// `wanted` within it.

Callers 1

nextMethod · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected