Remove SortedMap::iter_mut() since that allows to break the element sorting order which lookup relies on.

This commit is contained in:
Michael Woerister 2018-05-21 19:15:00 +02:00
parent eaa796c8b8
commit e850d78bcc

View file

@ -141,14 +141,6 @@ impl<K: Ord, V> SortedMap<K, V> {
(&self.data[start .. end])
}
#[inline]
pub fn range_mut<R>(&mut self, range: R) -> &mut [(K, V)]
where R: RangeBounds<K>
{
let (start, end) = self.range_slice_indices(range);
(&mut self.data[start .. end])
}
#[inline]
pub fn remove_range<R>(&mut self, range: R)
where R: RangeBounds<K>