Create a line marked as the last in a sequence. This affects how trailing newline comparisons work.
(content: &'a [u8])
| 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected