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

Method len

atomic-core/src/diff/inline.rs:238–240  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

236 /// Get the length of this hunk in bytes.
237 #[inline]
238 pub fn len(&self) -> usize {
239 self.end.saturating_sub(self.start)
240 }
241
242 /// Check if this hunk is empty.
243 #[inline]

Callers 7

deleted_bytesMethod · 0.45
inserted_bytesMethod · 0.45
html_escapeFunction · 0.45
merge_hunksFunction · 0.45
fill_gapsFunction · 0.45

Calls

no outgoing calls

Tested by 1