heapless
heapless copied to clipboard
Add method drain for Vec, like std::vec::Vec?
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?