Finish recording and produce a `Recorded` result. This consumes the builder and returns the accumulated state. # Returns A `Recorded` containing all hunks, contents, and metadata. # Example ```rust use atomic_core::record::RecordBuilder; let mut builder = RecordBuilder::new(); builder.append_contents(b"test content"); let recorded = builder.finish(); assert_eq!(recorded.contents().len(), 12
(self)
| 422 | /// assert_eq!(recorded.contents().len(), 12); |
| 423 | /// ``` |
| 424 | pub fn finish(self) -> Recorded { |
| 425 | Recorded { |
| 426 | actions: self.actions, |
| 427 | contents: self.contents, |
| 428 | updatables: self.updatables, |
| 429 | largest_file: self.largest_file, |
| 430 | has_binary_files: self.has_binary_files, |
| 431 | oldest_change: self.oldest_change, |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | /// Clear all recorded state for reuse. |
| 436 | /// |
no outgoing calls