ResizeSlice is an extension trait that allows slice references to be modified and shrunk in-place.
ResizeSlice