(&self)
| 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. |