dynstack
dynstack copied to clipboard
A stack for rust trait objects that minimizes allocations
It would be nice to have `DynStack::clear()` and/or `DynStack::drain()` (without arguments) methods.
Would you be open to a PR adding support for a heapless version behind an `alloc` feature flag, using `heapless::Vec`? If this is even possible, but i can't see why...
It's currently possible to misuse the `dyn_push!` macro in various ways. This PR tries to prevent the ones I found: - `$stack:expr` metavariable is expanded in unsafe block. This allows...
Hi, can you comment in detail the logic in the grow method regarding the memory alignment aspect, I'm learning the code and I can't really understand the logic.