min_max_macros

Crates.iomin_max_macros
lib.rsmin_max_macros
version0.1.1
sourcesrc
created_at2016-04-29 20:37:03.566024
updated_at2016-05-15 12:27:36.843844
descriptionMacros for nicer min()/max()
homepagehttps://gitlab.com/EClaesson/min_max_macros
repositoryhttps://gitlab.com/EClaesson/min_max_macros
max_upload_size
id4909
size4,704
Emanuel Claesson (EClaesson)

documentation

https://gitlab.com/EClaesson/min_max_macros

README

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
Commit count: 9

cargo fmt