Function range_set::range_compare::range_compare
[−]
[src]
pub fn range_compare<T: PrimInt>(
left: &RangeInclusive<T>,
right: &RangeInclusive<T>
) -> RangeCompare
Compare two inclusive ranges.
assert_eq!( range_compare (&(0..=5), &(0..=5)), RangeCompare::Intersect (RangeIntersect::EqualTo)); assert_eq!( range_compare (&(1..=0), &(1..=0)), RangeCompare::Disjoint (RangeDisjoint::EmptyBoth));