min_max_macros 0.1.1

Macros for nicer min()/max()
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented4 out of 6 items with examples
  • Size
  • Source code size: 4.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • EClaesson/min_max_macros
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EClaesson

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