Get the specific file statistics for the given index If the index is None, return the `FileGroup` statistics
(&self, index: Option<usize>)
| 438 | /// Get the specific file statistics for the given index |
| 439 | /// If the index is None, return the `FileGroup` statistics |
| 440 | pub fn file_statistics(&self, index: Option<usize>) -> Option<&Statistics> { |
| 441 | if let Some(index) = index { |
| 442 | self.files.get(index).and_then(|f| f.statistics.as_deref()) |
| 443 | } else { |
| 444 | self.statistics.as_deref() |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | /// Get the mutable reference to the statistics for this group |
| 449 | pub fn statistics_mut(&mut self) -> Option<&mut Statistics> { |