Find a chunk entry by its index. Returns `None` if the index is out of bounds.
(&self, index: u32)
| 318 | /// |
| 319 | /// Returns `None` if the index is out of bounds. |
| 320 | pub fn find_by_index(&self, index: u32) -> Option<&ChunkManifestEntry> { |
| 321 | self.entries.iter().find(|e| e.index == index) |
| 322 | } |
| 323 | |
| 324 | /// Returns an iterator over all chunk hashes in order. |
| 325 | pub fn hashes(&self) -> impl Iterator<Item = &[u8; 32]> { |