Consumes `self` returning a type that implements [`io::Read`] and [`io::Seek`]. Note: [`Clone`]-ing a [`SegmentedBytes`] is cheap, so if you need to retain the original [`SegmentedBytes`] you should clone it. [`io::Read`]: std::io::Read [`io::Seek`]: std::io::Seek
(self)
| 133 | /// [`io::Read`]: std::io::Read |
| 134 | /// [`io::Seek`]: std::io::Seek |
| 135 | pub fn reader(self) -> SegmentedReader<N> { |
| 136 | SegmentedReader::new(self) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | impl<const N: usize> Buf for SegmentedBytes<N> { |
no outgoing calls