pub struct SegmentMap<K, V> { /* private fields */ }
Implementations§
Source§impl<K, V> SegmentMap<K, V>where
K: PartialOrd,
impl<K, V> SegmentMap<K, V>where
K: PartialOrd,
pub fn new() -> SegmentMap<K, V>
pub fn segments(&self) -> Segments<'_, K, V> ⓘ
pub fn values(&self) -> Values<'_, K, V> ⓘ
pub fn values_mut(&mut self) -> ValuesMut<'_, K, V> ⓘ
pub fn iter(&self) -> Iter<'_, K, V> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, K, V> ⓘ
pub fn span(&self) -> Option<Segment<&K>>
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn get(&self, key: &K) -> Option<&V>
pub fn get_entry(&self, key: &K) -> Option<(&Segment<K>, &V)>
pub fn contains_key(&self, key: &K) -> bool
pub fn insert(&mut self, segment: Segment<K>, value: V)
Source§impl<K, V> SegmentMap<K, V>
impl<K, V> SegmentMap<K, V>
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for SegmentMap<K, V>
impl<K: Clone, V: Clone> Clone for SegmentMap<K, V>
Source§fn clone(&self) -> SegmentMap<K, V>
fn clone(&self) -> SegmentMap<K, V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K, V> Extend<(Segment<K>, V)> for SegmentMap<K, V>
impl<K, V> Extend<(Segment<K>, V)> for SegmentMap<K, V>
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (Segment<K>, V)>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (Segment<K>, V)>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<K, V> IntoIterator for SegmentMap<K, V>
impl<K, V> IntoIterator for SegmentMap<K, V>
Source§impl<K: Ord, V: Ord> Ord for SegmentMap<K, V>
impl<K: Ord, V: Ord> Ord for SegmentMap<K, V>
Source§fn cmp(&self, other: &SegmentMap<K, V>) -> Ordering
fn cmp(&self, other: &SegmentMap<K, V>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K: PartialOrd, V: PartialOrd> PartialOrd for SegmentMap<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for SegmentMap<K, V>
impl<K: Eq, V: Eq> Eq for SegmentMap<K, V>
impl<K, V> StructuralPartialEq for SegmentMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for SegmentMap<K, V>
impl<K, V> RefUnwindSafe for SegmentMap<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for SegmentMap<K, V>
impl<K, V> Sync for SegmentMap<K, V>
impl<K, V> Unpin for SegmentMap<K, V>
impl<K, V> UnwindSafe for SegmentMap<K, V>where
V: UnwindSafe,
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more