Enum range_union_find::OverlapType
source · pub enum OverlapType<T: NumInRange> {
Disjoint,
Partial(T),
Contained,
}
Expand description
Enum describing how a range may overlap with another range.
Variants§
Disjoint
Range does not overlap at all.
Partial(T)
Range overlaps partially, with parameter being overlap count.
Contained
Range is contained in the data structure.
Trait Implementations§
source§impl<T: Clone + NumInRange> Clone for OverlapType<T>
impl<T: Clone + NumInRange> Clone for OverlapType<T>
source§fn clone(&self) -> OverlapType<T>
fn clone(&self) -> OverlapType<T>
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<T: Debug + NumInRange> Debug for OverlapType<T>
impl<T: Debug + NumInRange> Debug for OverlapType<T>
source§impl<T: Hash + NumInRange> Hash for OverlapType<T>
impl<T: Hash + NumInRange> Hash for OverlapType<T>
source§impl<T: PartialEq + NumInRange> PartialEq<OverlapType<T>> for OverlapType<T>
impl<T: PartialEq + NumInRange> PartialEq<OverlapType<T>> for OverlapType<T>
source§fn eq(&self, other: &OverlapType<T>) -> bool
fn eq(&self, other: &OverlapType<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy + NumInRange> Copy for OverlapType<T>
impl<T: Eq + NumInRange> Eq for OverlapType<T>
impl<T: NumInRange> StructuralEq for OverlapType<T>
impl<T: NumInRange> StructuralPartialEq for OverlapType<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OverlapType<T>where T: RefUnwindSafe,
impl<T> Send for OverlapType<T>where T: Send,
impl<T> Sync for OverlapType<T>where T: Sync,
impl<T> Unpin for OverlapType<T>where T: Unpin,
impl<T> UnwindSafe for OverlapType<T>where T: 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