Returns all affected file paths in a single iterator. Order: modified files first, then added, then deleted. This is the list passed to `RecordOptions::paths` when recording the turn as an Atomic change.
(&self)
| 919 | /// This is the list passed to `RecordOptions::paths` when recording |
| 920 | /// the turn as an Atomic change. |
| 921 | pub fn all_paths(&self) -> Vec<PathBuf> { |
| 922 | let mut paths = Vec::with_capacity(self.file_count()); |
| 923 | paths.extend(self.modified.iter().cloned()); |
| 924 | paths.extend(self.added.iter().cloned()); |
| 925 | paths.extend(self.deleted.iter().cloned()); |
| 926 | paths |
| 927 | } |
| 928 | |
| 929 | /// Returns all affected paths as string slices. |
| 930 | /// |