sorted_map: add is_empty
This commit is contained in:
parent
61de47dd25
commit
eb772045f8
@ -143,6 +143,11 @@ impl<K: Ord, V> SortedMap<K, V> {
|
||||
self.data.len()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn range<R>(&self, range: R) -> &[(K, V)]
|
||||
where R: RangeBounds<K>
|
||||
|
Loading…
x
Reference in New Issue
Block a user