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

Method clear

atomic-core/src/change/store.rs:406–408  ·  view source on GitHub ↗

Clear all changes from the store.

(&self)

Source from the content-addressed store, hash-verified

404
405 /// Clear all changes from the store.
406 pub fn clear(&self) {
407 self.changes.write().unwrap().clear();
408 }
409
410 /// Get all hashes in the store.
411 pub fn hashes(&self) -> Vec<Hash> {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.65
unwrapMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected