rust-embedded/heapless

Add method drain for Vec, like std::vec::Vec?

remme123 opened this issue · 1 comments

std drain retures a new struct Drain, but heapless can drop the drained data by using method copy_within & truncate.

Sounds useful, could you make a PR for the feature?