Skip to content
#

equality

Here are 77 public repositories matching this topic...

JP-Ellis
JP-Ellis commented Feb 28, 2020

The documentation currently is not very clear as to how it computes things, and one reason I think is that nearly all the example just compare whether 1.0 is approximately equal to 1.0 which isn't very illustrative.

It would be good if there were examples at the crate level showing the differences between the various macros that illustrate when one should use abs_diff_eq! vs `relative_eq!

Blaisorblade
Blaisorblade commented Jun 5, 2016

UnivEq proves that "equals correctly defines the equality".
But I could neither find a definition of what that should mean, nor documentation on how that is proved. All implementation of equals must be correct according to equals contract. Do you simply talk about implementations that aren't the default reference equality? Or what?

This issue was born while trying to better understand htt

Improve this page

Add a description, image, and links to the equality topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the equality topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.