Single bound (lower or upper).
Single bound (lower or upper).
Bound may be unbounded, in which case value is None. Note by convention unbounded bounds are exclusive
value of this bound, if bounded
whether the bound is inclusive or exclusive. for example, 'foo < 5' is exclusive, 'foo <= 5' is inclusive
Takes the intersection of two bounds.
Takes the intersection of two bounds. If they are disjoint, will return None.
type parameter
first bounds
second bounds
intersection
Gets the larger value between two upper bounds, taking into account exclusivity.
Gets the larger value between two upper bounds, taking into account exclusivity. If the bounds are equal, the first bound will always be returned
first bound
second bound
larger bound
Gets the larger value between two upper bounds, taking into account exclusivity.
Gets the larger value between two upper bounds, taking into account exclusivity. If the bounds are equal, the first bound will always be returned
first bound
second bound
larger bound
Gets the smaller value between two lower bounds, taking into account exclusivity.
Gets the smaller value between two lower bounds, taking into account exclusivity. If the bounds are equal, the first bound will always be returned
first bound
second bound
smaller bound
Gets the smaller value between two upper bounds, taking into account exclusivity.
Gets the smaller value between two upper bounds, taking into account exclusivity. If the bounds are equal, the first bound will always be returned
first bound
second bound
smaller bound
Takes the union of two bound sequences.
Takes the union of two bound sequences. Naive implementation that just concatenates
type parameter
first bounds
second bounds
union