]> git.lizzy.rs Git - rust.git/commit
add MutableVector::mut_split(self, pred) -> DoubleEndedIterator<&mut [T]>
authorGuillaume Pinot <texitoi@texitoi.eu>
Sun, 1 Dec 2013 17:50:34 +0000 (18:50 +0100)
committerGuillaume Pinot <texitoi@texitoi.eu>
Tue, 3 Dec 2013 16:31:15 +0000 (17:31 +0100)
commit44fc3c6ea8374e7426257532255bdbf877b77453
tree26ff28152c27af290baa544b46d9feaf3b1edcfd
parent25bb1a406c1b66b8df89d431046cae591593dc01
add MutableVector::mut_split(self, pred) -> DoubleEndedIterator<&mut [T]>

This method is the mutable version of ImmutableVector::split.  It is
a DoubleEndedIterator, making mut_rsplit irrelevent.  The size_hint
method is not optimal because of #9629.

At the same time, clarify *split* iterator doc.
src/libstd/vec.rs