staticvec
staticvec copied to clipboard
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
It's just kinda unavoidable due to nothing else being accepted as an array index in Rust (despite the fact that I'm quite sure it's not even _possible_ to instantiate a...
Rust 1.51 implements const generics - https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html
Hi, I see you also provide derived types such as `StaticHeap` and `StaticString`. What would you think about adding a `StaticVecDeque` type mimicking the standard [`VecDeque`](https://doc.rust-lang.org/std/collections/struct.VecDeque.html)? It would be super...
Hi. Thanks for your crate. I notice that staticvec is not building with latest nightly: ``` ❯ rustc -V rustc 1.71.0-nightly (e77366b57 2023-05-16) ❯ cargo build Updating crates.io index Compiling...
Hello, when depending on `staticvec` with `default-features = false`, I get: ``` error: `~const` can only be applied to `#[const_trait]` traits --> /home/joshua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/staticvec-0.11.9/src/lib.rs:1420:26 | 1420 | where T: Copy +...
The `get_unchecked_mut` call within `drop_in_place` sometimes panics. When the capacity of the extended vector is not enough to hold all extra values `extend_ex` tries to drop the rest. However the...