jtempest / float_eq-rs

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

Allow for custom #[derive] traits when deriving Ulps and DebugUlpsDiff types #20

Closed jtempest closed 3 years ago

jtempest commented 3 years ago

At present, Debug, Clone, Copy, PartialEq are derived, but it's not uncommon to want to implement your own fmt::Debug for example. Add a list of traits to derive as an optional parameter to the relevant derive macros.

jtempest commented 3 years ago

Now implemented.