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

Method insert_change

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

Insert a change, computing its hash automatically. # Arguments `change` - The change to store # Returns The computed hash. # Errors Returns an error if hash computation fails.

(&self, change: Change)

Source from the content-addressed store, hash-verified

350 ///
351 /// Returns an error if hash computation fails.
352 pub fn insert_change(&self, change: Change) -> Result<Hash, ChangeError> {
353 let hash = change.hash()?;
354 self.insert(hash, change);
355 Ok(hash)
356 }
357
358 /// Remove a change from the store.
359 ///

Callers 7

run_single_insertFunction · 0.45
execute_rewordMethod · 0.45
run_asyncMethod · 0.45
make_changeFunction · 0.45
ensure_loadedMethod · 0.45
test_clearFunction · 0.45

Calls 2

hashMethod · 0.45
insertMethod · 0.45

Tested by 2

test_clearFunction · 0.36