heapless
heapless copied to clipboard
Add `Vec::drain` and `String::drain`.
Closes https://github.com/rust-embedded/heapless/issues/334 and https://github.com/rust-embedded/heapless/pull/365.
could you add tests?
I can't quite figure out the miri error. Note that the implementation is almost 1:1 copied from std, so I'm not sure if it's a false positive.
rebased it for you on top of the new VecView impl.
@Dirbaio, thanks!