use std::mem;
use std::ops::{Bound, Index, IndexMut, RangeBounds};
+mod index_map;
+
+pub use index_map::SortedIndexMultiMap;
+
/// `SortedMap` is a data structure with similar characteristics as BTreeMap but
/// slightly different trade-offs: lookup, insertion, and removal are O(log(N))
/// and elements can be iterated in order cheaply.
R: RangeBounds<K>,
{
let (start, end) = self.range_slice_indices(range);
- (&self.data[start..end])
+ &self.data[start..end]
}
#[inline]