pub enum Intersection {
Empty,
Overlap,
Full,
}
Expand description
Represents the three possible types of intersection between two ranges.
Variants§
Empty
The two ranges do not overlap at all.
Overlap
The two ranges overlap each other but none is contained within the other.
Full
One range is fully contained in the other (they may be identical).
Implementations§
Trait Implementations§
Source§impl Debug for Intersection
impl Debug for Intersection
Source§impl PartialEq for Intersection
impl PartialEq for Intersection
impl StructuralPartialEq for Intersection
Auto Trait Implementations§
impl Freeze for Intersection
impl RefUnwindSafe for Intersection
impl Send for Intersection
impl Sync for Intersection
impl Unpin for Intersection
impl UnwindSafe for Intersection
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