pub struct IntervalMap<T: Ord + Clone, V: Clone> { /* private fields */ }Expand description
A simple interval map for ordered key types.
Stores a list of disjoint intervals, each associated with a value. Lookup is O(n) by linear scan.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Ord + Clone, V: Clone + Clone> Clone for IntervalMap<T, V>
impl<T: Clone + Ord + Clone, V: Clone + Clone> Clone for IntervalMap<T, V>
Source§fn clone(&self) -> IntervalMap<T, V>
fn clone(&self) -> IntervalMap<T, V>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T, V> Freeze for IntervalMap<T, V>
impl<T, V> RefUnwindSafe for IntervalMap<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for IntervalMap<T, V>
impl<T, V> Sync for IntervalMap<T, V>
impl<T, V> Unpin for IntervalMap<T, V>
impl<T, V> UnsafeUnpin for IntervalMap<T, V>
impl<T, V> UnwindSafe for IntervalMap<T, V>where
T: UnwindSafe,
V: 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