Enum range_set::range_compare::RangeCompare
source · pub enum RangeCompare {
Disjoint(RangeDisjoint),
Intersect(RangeIntersect),
}
Expand description
Result of comparing a pair of ranges (A,B)
Variants§
Disjoint(RangeDisjoint)
Intersect(RangeIntersect)
Trait Implementations§
source§impl Debug for RangeCompare
impl Debug for RangeCompare
source§impl From<RangeDisjoint> for RangeCompare
impl From<RangeDisjoint> for RangeCompare
source§fn from(disjoint: RangeDisjoint) -> Self
fn from(disjoint: RangeDisjoint) -> Self
Converts to this type from the input type.
source§impl From<RangeIntersect> for RangeCompare
impl From<RangeIntersect> for RangeCompare
source§fn from(intersect: RangeIntersect) -> Self
fn from(intersect: RangeIntersect) -> Self
Converts to this type from the input type.
source§impl PartialEq for RangeCompare
impl PartialEq for RangeCompare
source§fn eq(&self, other: &RangeCompare) -> bool
fn eq(&self, other: &RangeCompare) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RangeCompare
impl StructuralEq for RangeCompare
impl StructuralPartialEq for RangeCompare
Auto Trait Implementations§
impl RefUnwindSafe for RangeCompare
impl Send for RangeCompare
impl Sync for RangeCompare
impl Unpin for RangeCompare
impl UnwindSafe for RangeCompare
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