jtempest / float_eq-rs

Compare IEEE floating point values for equality.
Other
39 stars 6 forks source link

Trait impl fallbacks for non-floats #10

Closed jtempest closed 4 years ago

jtempest commented 4 years ago

In particular for types like Result or composite types that contain non-floats, it makes sense to introduce a path for non-floats to be considered in floating point equality expressions. Consider how to sensibly do this - diffs should be None and equality should defer to PartialEq.

jtempest commented 4 years ago

Closed as vague, will be replaced by more specific discussion of what to do wrt enums (in particular Result).