Trait resize_slice::ResizeSlice
[−]
[src]
pub trait ResizeSlice { fn resize(&mut self, start: usize, end: usize); fn resize_from(&mut self, start: usize); fn resize_to(&mut self, end: usize); }
Extension trait that allows you to resize mutable slice references
Required Methods
fn resize(&mut self, start: usize, end: usize)
Resizes the slice to start
offset and end - start
len
Panics
Panics on out of bounds resize (start <= end <= self.len()
)
fn resize_from(&mut self, start: usize)
fn resize_to(&mut self, end: usize)
Implementations on Foreign Types
impl<'a, T> ResizeSlice for &'a mut [T]
[src]
impl<'a, T> ResizeSlice for &'a mut [T]
impl<'a, T> ResizeSlice for &'a [T]
[src]
impl<'a, T> ResizeSlice for &'a [T]