Build a borrowing `SegmentReader`. The reader must not outlive the handle reference it was built from.
(&self)
| 143 | /// Build a borrowing `SegmentReader`. The reader must not outlive |
| 144 | /// the handle reference it was built from. |
| 145 | pub fn reader(&self) -> SegmentReader<'_> { |
| 146 | // Already validated at open time; unwrap is safe because we |
| 147 | // hold a live backing buffer of the same bytes that already parsed. |
| 148 | SegmentReader::open(self.backing.bytes()).expect("segment validated at open") |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | impl std::fmt::Debug for SegmentHandle { |
no test coverage detected