Crates.io | const_fixedp |
lib.rs | const_fixedp |
version | 0.1.1 |
source | src |
created_at | 2021-08-08 17:49:56.828786 |
updated_at | 2021-08-08 21:26:05.851133 |
description | A const type for fixed point arithmetic |
homepage | |
repository | https://github.com/unleashed/const_fixedp |
max_upload_size | |
id | 433268 |
size | 65,093 |
This crate offers a basic const unsigned fixed point arithmetic type.
Please check out the documentation for examples.
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.
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".
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.
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!