pub struct DisjointIntervalMap<O, V> { /* private fields */ }Implementations§
Source§impl<O: Ord, V: Copy> DisjointIntervalMap<O, V>
impl<O: Ord, V: Copy> DisjointIntervalMap<O, V>
pub fn try_new( intervals: impl IntoIterator<Item = ExactInterval<O, V>>, ) -> Result<Self, DisjointIntervalError<V>>
pub fn overlapping( &self, object: &O, start: usize, length: usize, ) -> Result<Overlapping<'_, V>, InvalidInterval>
Trait Implementations§
Auto Trait Implementations§
impl<O, V> Freeze for DisjointIntervalMap<O, V>
impl<O, V> RefUnwindSafe for DisjointIntervalMap<O, V>
impl<O, V> Send for DisjointIntervalMap<O, V>
impl<O, V> Sync for DisjointIntervalMap<O, V>
impl<O, V> Unpin for DisjointIntervalMap<O, V>
impl<O, V> UnsafeUnpin for DisjointIntervalMap<O, V>
impl<O, V> UnwindSafe for DisjointIntervalMap<O, V>
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