[−][src]Struct segment_map::SegmentMap
Implementations
impl<K, V> SegmentMap<K, V> where
K: PartialOrd,
[src]
K: PartialOrd,
pub fn new() -> SegmentMap<K, V>
[src]
pub fn segments(&self) -> Segments<'_, 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 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]
K: Clone + PartialOrd,
V: Clone,
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]
F: Fn(Option<V>) -> Option<V> + Clone,
pub fn update_entry<F>(&mut self, segment: &Segment<K>, value: F) where
F: Fn(&Segment<K>, Option<V>) -> Option<V> + Clone,
[src]
F: Fn(&Segment<K>, Option<V>) -> Option<V> + Clone,
Trait Implementations
impl<K: Clone, V: Clone> Clone for SegmentMap<K, V>
[src]
fn clone(&self) -> SegmentMap<K, V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
K: Clone + PartialOrd,
V: Clone,
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = (Segment<K>, V)>,
[src]
I: IntoIterator<Item = (Segment<K>, V)>,
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<K: Hash, V: Hash> Hash for SegmentMap<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, 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?
fn into_iter(self) -> IntoIter<K, V>ⓘ
[src]
impl<K: Ord, V: Ord> Ord for SegmentMap<K, V>
[src]
fn cmp(&self, other: &SegmentMap<K, V>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<K: PartialEq, V: PartialEq> PartialEq<SegmentMap<K, V>> for SegmentMap<K, V>
[src]
fn eq(&self, other: &SegmentMap<K, V>) -> bool
[src]
fn ne(&self, other: &SegmentMap<K, V>) -> bool
[src]
impl<K: PartialOrd, V: PartialOrd> PartialOrd<SegmentMap<K, V>> for SegmentMap<K, V>
[src]
fn partial_cmp(&self, other: &SegmentMap<K, V>) -> Option<Ordering>
[src]
fn lt(&self, other: &SegmentMap<K, V>) -> bool
[src]
fn le(&self, other: &SegmentMap<K, V>) -> bool
[src]
fn gt(&self, other: &SegmentMap<K, V>) -> bool
[src]
fn ge(&self, other: &SegmentMap<K, V>) -> bool
[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,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for SegmentMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for SegmentMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for SegmentMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for SegmentMap<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>,