Based on Answer (which leads to std::cmp functions), here is the working Playground
Problem:
I try to get min / max of a Vec .
As f64 has NAN and Infinity, it doesn't fulfill Ord and complains about:
the trait `Ord` is not implemented for `f64`
How can I get the min/max anyhow for scenarios where NAN / Inf is never contained in the Vec?