Registry / utility / partial-min-max

partial-min-max

JSON →
library0.4.0rscratesunverified

`min` and `max` functions that work with `PartialOrd` types.

# Cargo.toml [dependencies] partial-min-max = "0.4.0"
INSTALL
IMPORT
SIG · PARTIAL-MIN-MAX
P
partial-min-max
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

min
use partial_min_max::min;

Find the minimum of two PartialOrd values.

use partial_min_max::min; let a = 3.5; let b = 2.1; let result = min(a, b); println!("Min: {}", result);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
partial-min-max — cargo add partial-min-max · libregistry