Trait len_trait::index::SplitAtMut [] [src]

pub trait SplitAtMut<Idx>: IndexRangesMut<Idx> + SplitAt<Idx> {
    fn split_at_mut(&mut self,
                    index: Idx)
                    -> (&mut Self::Output, &mut Self::Output); }

Trait for collections which can be split into two pieces at a given index.

Splitting a collection must take a constant amount of time and space.

Required Methods

Splits the collection into two mutable pieces at the given index.

Panics

Panics if index is invalid according to the collection.

Implementors