A const type for fixed point arithmetic in Rust.
-
Updated
Aug 8, 2021 - Rust
A const type for fixed point arithmetic in Rust.
A feed-forward-only neural network library, planned for embedded devices
Implements a macro providing a compile-time quicksort function for arrays of any length, containing any primitive Copy type with a PartialOrd implementation.
Strong aliases for https://lib.rs/typenum, powered by const generics
Sort slices in const items.
Code originates from the little book of rust macros by @DanielKeep. I thought i'd add this as a crate to crates.io so it can easily be imported to any project if needed. No std required. I find it very useful for counting the number of elements when implementing traits for tuples within a macro.
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
Bitwise utility functions
Calculate the absolute ratio between 2 arbitrary types
Work with prime numbers in const contexts. Prime generation, primality testing, prime counting, factorization, and more.
Add a description, image, and links to the const topic page so that developers can more easily learn about it.
To associate your repository with the const topic, visit your repo's landing page and select "manage topics."