Module range_set::range_compare [] [src]

Type and functions for comparing inclusive ranges

Enums

RangeCompare

Result of comparing a pair of ranges (A,B)

RangeDisjoint

Ways in which a pair of ranges (A,B) can be disjoint

RangeIntersect

Ways in which a pair of ranges (A,B) can intersect

Functions

intersection

Compute the intersection of two inclusive ranges. Returns an empty range if they are disjoint.

is_empty

TODO: replace with standard library is_empty method when PR #48087 is merged

range_compare

Compare two inclusive ranges.