You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new impl is actually more of what you want - it would allow the code to be simplified to left.min(right). Unfortunately, that won't work on stable. But you can still use cmp::min(left, right) instead of that complicated line (after a use std::cmp;).
Activity
arielb1 commentedon Aug 5, 2017
Ord::minwas added.The new
Ord::minshadowsf64'smin, which was accessed through theDerefimpl at https://github.com/reem/rust-ordered-float/blob/b27bbd4/src/lib.rs#L225.The new impl is actually more of what you want - it would allow the code to be simplified to
left.min(right). Unfortunately, that won't work on stable. But you can still usecmp::min(left, right)instead of that complicated line (after ause std::cmp;).Blei commentedon Aug 7, 2017
Thank you! Fixed and published a new version.
est31 commentedon Aug 7, 2017
Thanks!