ApproxEq
The ApproxEq
trait handily provides a way to define approximate relations between types and comes with already-declared arbitrary implementations for primitive number types!
Easily define implementations for your own types:
use ApproxEq;
Contributing
Any and all PRs are welcome.
Acknowledgement
The ApproxEq crate is what you might call a joke.
Much of the documentation is an adaptation of rust-lang's std::cmp::PartialEq
trait documentation.