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

Method clear

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

Clear all recorded state for reuse. This retains allocated capacity for efficiency.

(&mut self)

Source from the content-addressed store, hash-verified

436 ///
437 /// This retains allocated capacity for efficiency.
438 pub fn clear(&mut self) {
439 self.actions.clear();
440 self.contents.clear();
441 self.updatables.clear();
442 self.recorded_inodes.clear();
443 self.largest_file = 0;
444 self.has_binary_files = false;
445 self.oldest_change = SystemTime::UNIX_EPOCH;
446 }
447
448 /// Get statistics about the recording.
449 pub fn stats(&self) -> RecordStats {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected