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

Method len

atomic-core/src/diff/split.rs:95–102  ·  view source on GitHub ↗

Get the length of the separator in bytes.

(&self)

Source from the content-addressed store, hash-verified

93
94 /// Get the length of the separator in bytes.
95 pub fn len(&self) -> usize {
96 match self {
97 Separator::Newline => 1,
98 Separator::CrLf => 2,
99 Separator::Byte(_) => 1,
100 Separator::Custom(v) => v.len(),
101 }
102 }
103
104 /// Check if the separator is empty.
105 pub fn is_empty(&self) -> bool {

Callers 3

find_inMethod · 0.45
nextMethod · 0.45
size_hintMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected