(&self, f: &mut std::fmt::Formatter<'_>)
| 348 | |
| 349 | impl<'a> std::fmt::Debug for Line<'a> { |
| 350 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 351 | // Try to display as UTF-8 string, fall back to byte representation |
| 352 | match std::str::from_utf8(self.content) { |
| 353 | Ok(s) => write!(f, "Line({:?})", s), |
| 354 | Err(_) => write!(f, "Line({:?})", self.content), |
| 355 | } |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | impl<'a> AsRef<[u8]> for Line<'a> { |
nothing calls this directly
no outgoing calls
no test coverage detected