Crate min_max_macros

Source
Expand description

Macros for nicer min and max. Also contains macros for min/max of f64s.

Macros§

max
Returns the highest value (Ord) of the passed parameters.
max_f
Returns the highest value (f64) of the passed parameters.
min
Returns the lowest value (Ord) of the passed parameters.
min_f
Returns the lowest value (f64) of the passed parameters.

Functions§

max_f64
f(x, y) form of f64’s x.max(y) Used in max_f!
min_f64
f(x, y) form of f64’s x.min(y) Used in min_f!