(&mut self, kind: FileKind)
| 93 | } |
| 94 | |
| 95 | pub fn pop(&mut self, kind: FileKind) -> Option<FileInfo> { |
| 96 | let ret = match kind { |
| 97 | FileKind::Compressible => self.compressible.pop(), |
| 98 | FileKind::Compressed => self.compressed.pop(), |
| 99 | FileKind::Skipped => self.skipped.pop(), |
| 100 | }; |
| 101 | |
| 102 | if let Some(fi) = ret { |
| 103 | self.logical_size -= fi.logical_size; |
| 104 | self.physical_size -= fi.physical_size; |
| 105 | |
| 106 | Some(fi) |
| 107 | } else { |
| 108 | None |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | pub fn push(&mut self, kind: FileKind, fi: FileInfo) { |
| 113 | self.logical_size += fi.logical_size; |
no outgoing calls
no test coverage detected