Module cmp

Source
Expand description

Comparison goals including lt, lte, gt, gte, min and max.

Functionsยง

gt
Ensure that one value is greater than another.
gte
Ensure that one value is greater than or equal to another.
lt
Ensure that one value is less than another.
lte
Ensure that one value is less than or equal to another.
max
Get the greater of two values according to std::cmp::max.
min
Get the lesser of two values according to std::cmp::min.