Crates.io | min_max_macros |
lib.rs | min_max_macros |
version | 0.1.1 |
source | src |
created_at | 2016-04-29 20:37:03.566024 |
updated_at | 2016-05-15 12:27:36.843844 |
description | Macros for nicer min()/max() |
homepage | https://gitlab.com/EClaesson/min_max_macros |
repository | https://gitlab.com/EClaesson/min_max_macros |
max_upload_size | |
id | 4909 |
size | 4,704 |
Crate: https://crates.io/crates/min_max_macros
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