[][src]Struct interval_map::interval_map::IntervalMap

pub struct IntervalMap<K, V> { /* fields omitted */ }

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]

pub fn get_key_value<Q: ?Sized>(&self, key: &Q) -> Option<(&Interval<K>, &V)> where
    K: Borrow<Q>,
    Q: Ord
[src]

pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool where
    K: Borrow<Q>,
    Q: Ord
[src]

pub fn get_mut<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut V> where
    K: Borrow<Q>,
    Q: Ord
[src]

pub fn range<T, R>(&self, r: R) -> Iter<K, V> where
    K: Borrow<T>,
    R: Into<Interval<T>>,
    T: Ord
[src]

pub fn range_mut<T, R>(&mut self, r: R) -> IterMut<K, V> where
    K: Borrow<T>,
    R: Into<Interval<T>>,
    T: Ord
[src]

pub fn entry(&mut self, key: K) -> Entry<K, V> where
    K: Ord + Clone
[src]

impl<K, V> IntervalMap<K, V> where
    K: Ord + Clone,
    V: Clone
[src]

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]

pub fn split_off<Q>(&mut self, key: K) -> Self[src]

Trait Implementations

impl<K: Clone, V: Clone> Clone for IntervalMap<K, V>[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]

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]

impl<K, V> Extend<(Interval<K>, V)> for IntervalMap<K, V> where
    K: Ord + Clone,
    V: Clone
[src]

impl<K, I, V> FromIterator<(I, V)> for IntervalMap<K, V> where
    K: Ord + Clone,
    I: Into<Interval<K>>,
    V: Clone
[src]

impl<K: Hash, V: Hash> Hash for IntervalMap<K, V>[src]

impl<'_, K, Q: ?Sized, V> Index<&'_ Q> for IntervalMap<K, V> where
    K: Borrow<Q>,
    Q: Ord
[src]

type Output = V

The returned type after indexing.

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?

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?

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?

impl<K: PartialEq, V: PartialEq> PartialEq<IntervalMap<K, V>> for IntervalMap<K, V>[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

impl<K, V> Send for IntervalMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for IntervalMap<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for IntervalMap<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for IntervalMap<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.