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

Method content_len

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

Source from the content-addressed store, hash-verified

309 /// Returns 0 for pure deletion hunks.
310 #[must_use]
311 pub fn content_len(&self) -> u64 {
312 match (self.content_start, self.content_end) {
313 (Some(start), Some(end)) => end.saturating_sub(start),
314 _ => 0,
315 }
316 }
317
318 /// Get the number of deleted lines.
319 #[must_use]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected