heapless icon indicating copy to clipboard operation
heapless copied to clipboard

Heapless, `static` friendly data structures

Results 105 heapless issues
Sort by recently updated
recently updated
newest added

Pushing to heapless:Vec invalidates all previously created pointers into Vector small example ```rust fn vector() { let mut a = Vec::with_capacity(10); a.push(1); let b = std::ptr::from_ref(a.get(0).unwrap()); a.push(1); println!("{:?}", unsafe {...

When creating a vec, is it possible to use const fn so that the values can be prepared from the beginning?

enhancement

It might be nice to have a `Cow` type in heapless. ```rs pub enum Cow; ``` But I'm not sure if this is actually a good idea because you have...

This needs a workaround for the `const` use case however

Fixes #522. Ideally, this PR is updated after PR #521 is merged to simplify the tests. This PR implements the `TryFrom` trait for creating a `Deque` from a slice. Note...

I ran into this bug when inserting a lot of keys in an IndexMap, and it turns out that when my keys are bigger than an u16 they are not...

I think it should be possible to make operations like lookups, inserts, and construction with data work at compile time for `LinearMap`, I wonder how open the maintainers would be...

Blocked on: - [x] #569 - [ ] https://github.com/rust-embedded/heapless/pull/571 - [x] https://github.com/rust-embedded/heapless/pull/570