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

Method get_merged

atomic-core/src/merge/resolved.rs:95–97  ·  view source on GitHub ↗

Look up merged content for a vertex. Returns `Some(bytes)` if `vid` is the lead vertex of a resolved SCC.

(&self, vid: VertexId)

Source from the content-addressed store, hash-verified

93 ///
94 /// Returns `Some(bytes)` if `vid` is the lead vertex of a resolved SCC.
95 pub fn get_merged(&self, vid: VertexId) -> Option<&[u8]> {
96 self.merged.get(&vid).map(|v| v.as_slice())
97 }
98
99 /// Check whether a vertex should be silently skipped during output.
100 pub fn should_skip(&self, vid: VertexId) -> bool {

Callers 4

output_file_with_filterFunction · 0.80
output_file_to_bufferFunction · 0.80

Calls 2

getMethod · 0.65
as_sliceMethod · 0.45

Tested by

no test coverage detected