Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
-
Updated
May 29, 2023 - Rust
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
Work with prime numbers in const contexts. Prime generation, primality testing, prime counting, factorization, and more.
Implements a macro providing a compile-time quicksort function for arrays of any length, containing any primitive Copy type with a PartialOrd implementation.
Calculate the absolute ratio between 2 arbitrary types
A const type for fixed point arithmetic in Rust.
Sort slices in const items.
Strong aliases for https://lib.rs/typenum, powered by const generics
A feed-forward-only neural network library, planned for embedded devices
Bitwise utility functions
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.
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."