Trait len_trait::index::SplitAtMut
[−]
[src]
pub trait SplitAtMut<Idx>: IndexRangeMut<Idx> + SplitAt<Idx> { fn split_at_mut(
&mut self,
index: Idx
) -> (&mut Self::Output, &mut Self::Output); }
A trait for splitting a collection into two mutable pieces at a given index.
Splitting a collection must take a constant amount of time and space.
Required Methods
fn split_at_mut(&mut self, index: Idx) -> (&mut Self::Output, &mut Self::Output)
Splits the collection into two mutable pieces at the given index.
Panics
Panics if index
is invalid according to the collection.