2 releases

Uses old Rust 2015

0.1.1 May 15, 2016
0.1.0 Apr 29, 2016

#19 in #min-max

Download history 14/week @ 2024-02-19 31/week @ 2024-02-26 46/week @ 2024-03-04 22/week @ 2024-03-11 13/week @ 2024-03-18

113 downloads per month
Used in sugar

MIT license

4KB
60 lines

Macros for nicer min()/max().

Crate: https://crates.io/crates/min_max_macros

Usage

min!(10, 2, 5, 9)
// = 2

max!(10, 2, 5, 9)
// = 10

min_f!(10.2, 2.5, 5.3, 9.9)
// = 2.5

max_f!(10.2, 2.5, 5.3, 9.9)
// = 10.2

lib.rs:

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

No runtime deps