[][src]Struct segment_map::SegmentMap

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

Implementations

impl<K, V> SegmentMap<K, V> where
    K: PartialOrd
[src]

pub fn new() -> SegmentMap<K, V>[src]

pub fn segments(&self) -> Segments<'_, K, V>

Notable traits for Segments<'a, K, V>

impl<'a, K, V> Iterator for Segments<'a, K, V> type Item = &'a Segment<K>;
[src]

pub fn values(&self) -> Values<'_, K, V>

Notable traits for Values<'a, K, V>

impl<'a, K, V> Iterator for Values<'a, K, V> type Item = &'a V;
[src]

pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>

Notable traits for ValuesMut<'a, K, V>

impl<'a, K, V> Iterator for ValuesMut<'a, K, V> type Item = &'a mut V;
[src]

pub fn iter(&self) -> Iter<'_, K, V>

Notable traits for Iter<'a, K, V>

impl<'a, K, V> Iterator for Iter<'a, K, V> type Item = (&'a Segment<K>, &'a V);
[src]

pub fn iter_mut(&mut self) -> IterMut<'_, K, V>

Notable traits for IterMut<'a, K, V>

impl<'a, K, V> Iterator for IterMut<'a, K, V> type Item = (&'a Segment<K>, &'a mut V);
[src]

pub fn span(&self) -> Option<Segment<&K>>[src]

pub fn is_empty(&self) -> bool[src]

pub fn clear(&mut self)[src]

pub fn get(&self, key: &K) -> Option<&V>[src]

pub fn get_entry(&self, key: &K) -> Option<(&Segment<K>, &V)>[src]

pub fn contains_key(&self, key: &K) -> bool[src]

pub fn insert(&mut self, segment: Segment<K>, value: V)[src]

impl<K, V> SegmentMap<K, V> where
    K: Clone + PartialOrd,
    V: Clone
[src]

pub fn remove(&mut self, segment: &Segment<K>)[src]

pub fn update<F>(&mut self, segment: &Segment<K>, value: F) where
    F: Fn(Option<V>) -> Option<V> + Clone
[src]

pub fn update_entry<F>(&mut self, segment: &Segment<K>, value: F) where
    F: Fn(&Segment<K>, Option<V>) -> Option<V> + Clone
[src]

Trait Implementations

impl<K: Clone, V: Clone> Clone for SegmentMap<K, V>[src]

impl<K: Debug, V: Debug> Debug for SegmentMap<K, V>[src]

impl<K: Eq, V: Eq> Eq for SegmentMap<K, V>[src]

impl<K, V> Extend<(Segment<K>, V)> for SegmentMap<K, V> where
    K: Clone + PartialOrd,
    V: Clone
[src]

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

impl<K, V> IntoIterator for SegmentMap<K, V>[src]

type Item = (Segment<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<K: Ord, V: Ord> Ord for SegmentMap<K, V>[src]

impl<K: PartialEq, V: PartialEq> PartialEq<SegmentMap<K, V>> for SegmentMap<K, V>[src]

impl<K: PartialOrd, V: PartialOrd> PartialOrd<SegmentMap<K, V>> for SegmentMap<K, V>[src]

impl<K, V> StructuralEq for SegmentMap<K, V>[src]

impl<K, V> StructuralPartialEq for SegmentMap<K, V>[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for SegmentMap<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

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

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

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

impl<K, V> UnwindSafe for SegmentMap<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.