Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_bytes
Method · 0.45
inserted_bytes
Method · 0.45
html_escape
Function · 0.45
convert_word_diff_to_hunks
Function · 0.45
merge_hunks
Function · 0.45
fill_gaps
Function · 0.45
test_inline_diff_hunks_cover_entire_line
Function · 0.45
Calls
no outgoing calls
Tested by
1
test_inline_diff_hunks_cover_entire_line
Function · 0.36