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
I wanted to write a struct containing an OrderedFloat, but to implement various traits such as Eq or Ord, I need to use the Float trait bound but this trait is defined in num-traits instead of OrderedFloat.
The current situation forces me to add num-traits to my dependencies only to pull the Float trait. It would be nicer if the traits used by OrderedFloat were re-exported.
An important benefit to this is that it ensures that its the correct version of the trait in case there are multiple versions of num-traits in the dependency tree.
The text was updated successfully, but these errors were encountered:
I wanted to write a struct containing an
OrderedFloat
, but to implement various traits such asEq
orOrd
, I need to use theFloat
trait bound but this trait is defined innum-traits
instead ofOrderedFloat
.The current situation forces me to add
num-traits
to my dependencies only to pull theFloat
trait. It would be nicer if the traits used byOrderedFloat
were re-exported.An important benefit to this is that it ensures that its the correct version of the trait in case there are multiple versions of
num-traits
in the dependency tree.The text was updated successfully, but these errors were encountered: