Crate resize_slice [] [src]

Shrinks slice references

ResizeSlice can be used to adjust the starting offset and length of a slice.

Example

use resize_slice::ResizeSlice;

let mut slice: &mut [_] = &mut [1, 2, 3, 4, 5];
slice.resize_from(2);

assert_eq!(slice, &mut [3, 4, 5]);

Traits

ResizeSlice

Extension trait that allows you to resize mutable slice references

SliceExt

Extension methods for slices

VecExt

Extension methods for vector types