(&self)
| 225 | /// ``` |
| 226 | #[inline] |
| 227 | pub fn content_without_newline(&self) -> &'a [u8] { |
| 228 | if self.trailing_newline { |
| 229 | &self.content[..self.content.len() - 1] |
| 230 | } else { |
| 231 | self.content |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | /// Check if this line has a trailing newline. |
| 236 | #[inline] |
no test coverage detected