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

Resizes the slice to start offset and end - start len

Panics

Panics on out of bounds resize (start <= end <= self.len())

Resize to a new beginning offset

Panics

Panics if start > self.len()

Resize to a new length

Panics

Panics if end > self.len()

Implementations on Foreign Types

impl<'a, T> ResizeSlice for &'a mut [T]
[src]

impl<'a, T> ResizeSlice for &'a [T]
[src]

Implementors