heapless icon indicating copy to clipboard operation
heapless copied to clipboard

Add `Vec::drain` and `String::drain`.

Open reitermarkus opened this issue 1 year ago • 2 comments

Closes https://github.com/rust-embedded/heapless/issues/334 and https://github.com/rust-embedded/heapless/pull/365.

reitermarkus avatar Jan 23 '24 01:01 reitermarkus

could you add tests?

Dirbaio avatar Jan 23 '24 01:01 Dirbaio

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.

reitermarkus avatar Jan 23 '24 16:01 reitermarkus

rebased it for you on top of the new VecView impl.

Dirbaio avatar Jun 30 '24 22:06 Dirbaio

@Dirbaio, thanks!

reitermarkus avatar Jul 01 '24 00:07 reitermarkus