pub enum IntersectionExt {
Empty,
Less,
LessOverlap,
Within,
Same,
Over,
GreaterOverlap,
Greater,
}
Expand description
Extends the Intersection enum with additional cases specific to ranges, from the point of the first range.
Variants§
Empty
One or the both of the ranges are empty, hence cannot intersect.
Less
The first range starts and ends before the second range, hence is fully less than.
LessOverlap
The first range starts before the second is less, but overlaps with it with the end.
Within
The first range is contained within the second range.
Same
Two ranges are identical.
Over
The first range contains the second range.
GreaterOverlap
The first range ends after (greater) the first range, but overlaps with it.
Greater
The first range is after the second range, is fully greater than.
Implementations§
Source§impl IntersectionExt
impl IntersectionExt
Sourcepub fn intersection(&self) -> Intersection
pub fn intersection(&self) -> Intersection
Converts an IntersectionExt instance into an Intersection instance.
Trait Implementations§
Source§impl Debug for IntersectionExt
impl Debug for IntersectionExt
Source§impl PartialEq for IntersectionExt
impl PartialEq for IntersectionExt
impl StructuralPartialEq for IntersectionExt
Auto Trait Implementations§
impl Freeze for IntersectionExt
impl RefUnwindSafe for IntersectionExt
impl Send for IntersectionExt
impl Sync for IntersectionExt
impl Unpin for IntersectionExt
impl UnwindSafe for IntersectionExt
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