adds a method to attempt turning a SegVec Slice (which is not necessarily contiguous) into a &[T] that can be useful whenever the Slice only spans a single segment.
Wow, I apologize - this slipped under my radar. This change makes sense, and I can see this being a useful optimization. Thank you for the contribution!
adds a method to attempt turning a SegVec
Slice
(which is not necessarily contiguous) into a&[T]
that can be useful whenever theSlice
only spans a single segment.