[−][src]Struct interval_map::interval_map::IntervalMap
Methods
impl<K, V> IntervalMap<K, V>
[src]
pub fn new() -> Self
[src]
pub fn with_capacity(capacity: usize) -> Self
[src]
pub fn capacity(&self) -> usize
[src]
pub fn keys(&self) -> Keys<K, V>
[src]
pub fn values(&self) -> Values<K, V>
[src]
pub fn values_mut(&mut self) -> ValuesMut<K, V>
[src]
pub fn iter(&self) -> Iter<K, V>
[src]
pub fn iter_mut(&mut self) -> IterMut<K, V>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn drain(&mut self) -> Drain<K, V>
[src]
pub fn clear(&mut self)
[src]
pub fn reserve(&mut self, additional: usize)
[src]
pub fn shrink_to_fit(&mut self)
[src]
pub fn get<Q: ?Sized>(&self, key: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Ord,
[src]
K: Borrow<Q>,
Q: Ord,
pub fn get_key_value<Q: ?Sized>(&self, key: &Q) -> Option<(&Interval<K>, &V)> where
K: Borrow<Q>,
Q: Ord,
[src]
K: Borrow<Q>,
Q: Ord,
pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool where
K: Borrow<Q>,
Q: Ord,
[src]
K: Borrow<Q>,
Q: Ord,
pub fn get_mut<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut V> where
K: Borrow<Q>,
Q: Ord,
[src]
K: Borrow<Q>,
Q: Ord,
pub fn range<T, R>(&self, r: R) -> Iter<K, V> where
K: Borrow<T>,
R: Into<Interval<T>>,
T: Ord,
[src]
K: Borrow<T>,
R: Into<Interval<T>>,
T: Ord,
pub fn range_mut<T, R>(&mut self, r: R) -> IterMut<K, V> where
K: Borrow<T>,
R: Into<Interval<T>>,
T: Ord,
[src]
K: Borrow<T>,
R: Into<Interval<T>>,
T: Ord,
pub fn entry(&mut self, key: K) -> Entry<K, V> where
K: Ord + Clone,
[src]
K: Ord + Clone,
impl<K, V> IntervalMap<K, V> where
K: Ord + Clone,
V: Clone,
[src]
K: Ord + Clone,
V: Clone,
pub fn insert<T: Into<Interval<K>>>(&mut self, key: T, val: V)
[src]
pub fn overwrite<T: Into<Interval<K>>>(&mut self, key: T, val: V)
[src]
pub fn remove<T: Into<Interval<K>>>(&mut self, key: T)
[src]
pub fn append(&mut self, other: &mut Self) where
K: Debug,
[src]
K: Debug,
pub fn split_off<Q>(&mut self, key: K) -> Self
[src]
Trait Implementations
impl<K: Clone, V: Clone> Clone for IntervalMap<K, V>
[src]
fn clone(&self) -> IntervalMap<K, V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Debug, V: Debug> Debug for IntervalMap<K, V>
[src]
impl<K, V> Default for IntervalMap<K, V> where
K: Ord + Clone,
V: Clone,
[src]
K: Ord + Clone,
V: Clone,
impl<K: Eq, V: Eq> Eq for IntervalMap<K, V>
[src]
impl<'a, K, V> Extend<(&'a Interval<K>, &'a V)> for IntervalMap<K, V> where
K: 'a + Ord + Clone,
V: 'a + Clone,
[src]
K: 'a + Ord + Clone,
V: 'a + Clone,
impl<K, V> Extend<(Interval<K>, V)> for IntervalMap<K, V> where
K: Ord + Clone,
V: Clone,
[src]
K: Ord + Clone,
V: Clone,
impl<K, I, V> FromIterator<(I, V)> for IntervalMap<K, V> where
K: Ord + Clone,
I: Into<Interval<K>>,
V: Clone,
[src]
K: Ord + Clone,
I: Into<Interval<K>>,
V: Clone,
fn from_iter<T: IntoIterator<Item = (I, V)>>(iter: T) -> Self
[src]
impl<K: Hash, V: Hash> Hash for IntervalMap<K, V>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'_, K, Q: ?Sized, V> Index<&'_ Q> for IntervalMap<K, V> where
K: Borrow<Q>,
Q: Ord,
[src]
K: Borrow<Q>,
Q: Ord,
impl<K, V> IntoIterator for IntervalMap<K, V>
[src]
type Item = (Interval<K>, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, K, V> IntoIterator for &'a IntervalMap<K, V>
[src]
type Item = (&'a Interval<K>, &'a V)
The type of the elements being iterated over.
type IntoIter = Iter<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, K, V> IntoIterator for &'a mut IntervalMap<K, V>
[src]
type Item = (&'a Interval<K>, &'a mut V)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<K: PartialEq, V: PartialEq> PartialEq<IntervalMap<K, V>> for IntervalMap<K, V>
[src]
fn eq(&self, other: &IntervalMap<K, V>) -> bool
[src]
fn ne(&self, other: &IntervalMap<K, V>) -> bool
[src]
impl<K, V> StructuralEq for IntervalMap<K, V>
[src]
impl<K, V> StructuralPartialEq for IntervalMap<K, V>
[src]
Auto Trait Implementations
impl<K, V> RefUnwindSafe for IntervalMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for IntervalMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for IntervalMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for IntervalMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for IntervalMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,