pub struct IntervalValue<K, V> { /* private fields */ }
Expand description
Tracks the size of intervals and owns values internally in the tree.
Implementations§
Source§impl<K, V> IntervalValue<K, V>
impl<K, V> IntervalValue<K, V>
Sourcepub fn value_mut(&mut self) -> &mut V
pub fn value_mut(&mut self) -> &mut V
Return a mutable reference to the value associated with this interval value.
Sourcepub fn into_inner(self) -> V
pub fn into_inner(self) -> V
Consume the IntervalValue and return the inner value.
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for IntervalValue<K, V>
impl<K: Clone, V: Clone> Clone for IntervalValue<K, V>
Source§fn clone(&self) -> IntervalValue<K, V>
fn clone(&self) -> IntervalValue<K, 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 moreSource§impl<K, V> Deref for IntervalValue<K, V>
impl<K, V> Deref for IntervalValue<K, V>
Source§impl<K, V> DerefMut for IntervalValue<K, V>
impl<K, V> DerefMut for IntervalValue<K, V>
impl<K: Copy, V: Copy> Copy for IntervalValue<K, V>
impl<K: Eq, V: Eq> Eq for IntervalValue<K, V>
impl<K, V> StructuralPartialEq for IntervalValue<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for IntervalValue<K, V>
impl<K, V> RefUnwindSafe for IntervalValue<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for IntervalValue<K, V>
impl<K, V> Sync for IntervalValue<K, V>
impl<K, V> Unpin for IntervalValue<K, V>
impl<K, V> UnwindSafe for IntervalValue<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