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

Method knows

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

Check if a change knows about another change. A change "knows" another if it's either a direct dependency or in the extra_known list. # Arguments `change_hash` - The change to check `other_hash` - The change to check for knowledge of # Returns `true` if `change_hash` knows about `other_hash`.

(&self, change_hash: &Hash, other_hash: &Hash)

Source from the content-addressed store, hash-verified

235 ///
236 /// `true` if `change_hash` knows about `other_hash`.
237 fn knows(&self, change_hash: &Hash, other_hash: &Hash) -> Result<bool, Self::Error> {
238 let change = self.get_change(change_hash)?;
239 Ok(change.knows(other_hash))
240 }
241}
242
243// MEMORY CHANGE STORE

Callers

nothing calls this directly

Implementers 1

store.rsatomic-core/src/change/store.rs

Calls 1

get_changeMethod · 0.45

Tested by

no test coverage detected