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

Method has_change

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

Check if a change exists. # Arguments `hash` - The content hash of the change # Returns `true` if the change exists in the store.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

115 ///
116 /// `true` if the change exists in the store.
117 fn has_change(&self, hash: &Hash) -> bool {
118 self.get_change(hash).is_ok()
119 }
120
121 /// Check if a change has content bytes.
122 ///

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