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

Method contains_change

atomic-core/src/pristine/span_index.rs:25–27  ·  view source on GitHub ↗

Whether `change_id`'s spans have already been loaded.

(&self, change_id: u64)

Source from the content-addressed store, hash-verified

23impl VertexSpanIndex {
24 /// Whether `change_id`'s spans have already been loaded.
25 pub(crate) fn contains_change(&self, change_id: u64) -> bool {
26 self.spans.contains_key(&change_id)
27 }
28
29 /// Install the full span set for a change (called once after a range scan).
30 pub(crate) fn insert_change(&mut self, change_id: u64, set: BTreeSet<(u64, u64)>) {

Callers 2

ensure_span_indexMethod · 0.80
ensure_loadedMethod · 0.80

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected