Range.is_valid

Note that in non-release builds, the struct invariant ensures that instances are always valid. This method can be called by user code to explicitly check the validity of a range, for example when creating a range from run-time data.

struct Range(T)
bool
is_valid
()

Return Value

Type: bool

true if the range is valid (min < max, or empty)

Meta