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

Method new_last

atomic-core/src/diff/line.rs:129–133  ·  view source on GitHub ↗

Create a line marked as the last in a sequence. This affects how trailing newline comparisons work.

(content: &'a [u8])

Source from the content-addressed store, hash-verified

127 ///
128 /// This affects how trailing newline comparisons work.
129 pub fn new_last(content: &'a [u8]) -> Self {
130 let mut line = Self::new(content);
131 line.is_last = true;
132 line
133 }
134
135 /// Split a byte slice into lines.
136 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected