2 releases
0.1.1 | Aug 8, 2021 |
---|---|
0.1.0 | Aug 8, 2021 |
#859 in Math
54KB
801 lines
const_fixedp
This crate offers a basic const unsigned fixed point arithmetic type.
Please check out the documentation for examples.
Status
This library is currently experimental. At this stage it is meant to explore const-related features of rustc. If you are looking for a complete fixed point solution you should look elsewhere in crates.io, but if you are willing to contribute towards a better, more complete const-powered fixed point library, then you are more than welcome!
Please report any issues at the issue tracker.
MSRV
Many features that we'd wish to have available on stable Rust haven't stabilised or landed yet. The crate itself is pretty much experimental, so there is no MSRV policy other than "always run the latest stable version".
Nightly compilers
It's fair game to play with nightly compiler versions implementing unstable features as long as the crate works as intended on the latest stable version.
Contributing
Contributions are very much appreciated. This crate started out as an experiment with generic const type parameters but ended up being potentially interesting to others.
There are certain shortcomings, incomplete features, improvements to be done after Rust lands support, and other tasks that anyone can do to improve the usefulness of such a const fixed point library.
Please fork and submit pull requests!
Dependencies
~245–760KB
~18K SLoC