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

Method find_block

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

Resolve the span containing `target` (preferring a non-empty span over an empty marker), if this change is loaded.

(&self, change_id: u64, target: u64)

Source from the content-addressed store, hash-verified

44 /// Resolve the span containing `target` (preferring a non-empty span over
45 /// an empty marker), if this change is loaded.
46 pub(crate) fn find_block(&self, change_id: u64, target: u64) -> Option<(u64, u64)> {
47 block(self.spans.get(&change_id)?, target)
48 }
49
50 /// Resolve the span ending at `target` (or, failing that, containing it),
51 /// preferring an empty marker at exactly `target`, if this change is loaded.

Callers 8

new_vertex_at_positionFunction · 0.45
retrieve_graphFunction · 0.45
walk_through_deadFunction · 0.45
visible_chain_reachesFunction · 0.45

Calls 2

blockFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected