pub fn classify_any<T: PartialOrd>(
a_start: Option<T>,
a_end: Option<T>,
b_start: Option<T>,
b_end: Option<T>,
inclusive: bool,
) -> RangeOverlap
Expand description
Classify the kind of overlap between two ranges that can be closed, half-open,
or fully open. Specifying a_start
, a_end
, b_start
, or b_end
as None
indicates that that side of the range is open. The final parameter, inclusive
,
can be true
to indicate that a_end
and b_end
are part of their ranges, or
false
if they are not.