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

Method content_range

atomic-core/src/record/workflow/graph_op/hunk.rs:300–305  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

298 /// Returns `None` for pure deletion hunks.
299 #[must_use]
300 pub fn content_range(&self) -> Option<(u64, u64)> {
301 match (self.content_start, self.content_end) {
302 (Some(start), Some(end)) => Some((start, end)),
303 _ => None,
304 }
305 }
306
307 /// Get the content length.
308 ///

Callers 1

add_hunkMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected