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

Method remove

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

Remove a change from the store. # Arguments `hash` - The hash of the change to remove # Returns The removed change, if it existed.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

365 ///
366 /// The removed change, if it existed.
367 pub fn remove(&self, hash: &Hash) -> Option<Change> {
368 self.changes.write().unwrap().remove(hash)
369 }
370
371 /// Get the number of changes in the store.
372 pub fn len(&self) -> usize {

Callers

nothing calls this directly

Calls 3

removeMethod · 0.65
unwrapMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected