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

Method insert

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

Insert a change into the store. # Arguments `hash` - The hash to use as the key `change` - The change to store

(&self, hash: Hash, change: Change)

Source from the content-addressed store, hash-verified

333 /// * `hash` - The hash to use as the key
334 /// * `change` - The change to store
335 pub fn insert(&self, hash: Hash, change: Change) {
336 self.changes.write().unwrap().insert(hash, change);
337 }
338
339 /// Insert a change, computing its hash automatically.
340 ///

Callers 15

insert_changeMethod · 0.45
test_insert_and_getFunction · 0.45
test_removeFunction · 0.45
test_hashesFunction · 0.45
test_cloneFunction · 0.45
test_has_contentsFunction · 0.45
test_get_headerFunction · 0.45
test_get_dependenciesFunction · 0.45
test_knowsFunction · 0.45
test_get_contents_basicFunction · 0.45

Calls 2

unwrapMethod · 0.45
writeMethod · 0.45

Tested by 15

test_insert_and_getFunction · 0.36
test_removeFunction · 0.36
test_hashesFunction · 0.36
test_cloneFunction · 0.36
test_has_contentsFunction · 0.36
test_get_headerFunction · 0.36
test_get_dependenciesFunction · 0.36
test_knowsFunction · 0.36
test_get_contents_basicFunction · 0.36