2 releases

Uses old Rust 2015

0.1.1 May 15, 2016
0.1.0 Apr 29, 2016

#17 in #min-max

Download history 4/week @ 2024-07-22 31/week @ 2024-07-29 7/week @ 2024-08-05 14/week @ 2024-08-12 2/week @ 2024-08-26 8/week @ 2024-09-02 8/week @ 2024-09-09 6/week @ 2024-09-16 28/week @ 2024-09-23 28/week @ 2024-09-30 3/week @ 2024-10-07 8/week @ 2024-10-14 44/week @ 2024-10-21 43/week @ 2024-10-28 81/week @ 2024-11-04

176 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