MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / finish

Method finish

atomic-core/src/record/builder.rs:424–433  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 15

fmtMethod · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
test_add_inode_updateFunction · 0.45
test_finish_emptyFunction · 0.45
test_finish_with_dataFunction · 0.45
test_recorded_is_emptyFunction · 0.45
test_recorded_into_partsFunction · 0.45
test_recorded_actionsFunction · 0.45

Calls

no outgoing calls

Tested by 13

test_add_inode_updateFunction · 0.36
test_finish_emptyFunction · 0.36
test_finish_with_dataFunction · 0.36
test_recorded_is_emptyFunction · 0.36
test_recorded_into_partsFunction · 0.36
test_recorded_actionsFunction · 0.36
test_recorded_debugFunction · 0.36
test_builder_statisticsFunction · 0.36