Safely extract the content, returning None if out of bounds.
(&self, content: &'a [u8])
| 287 | |
| 288 | /// Safely extract the content, returning None if out of bounds. |
| 289 | pub fn try_extract<'a>(&self, content: &'a [u8]) -> Option<&'a [u8]> { |
| 290 | content.get(self.start..self.end) |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | impl std::fmt::Display for ChangeHunk { |