rust-embedded / heapless

Heapless, `static` friendly data structures
Apache License 2.0
1.56k stars 185 forks source link

`MpMcQueue`: add `MpMcQueueView`, similar to `VecView` on top of #486 #488

Closed sosthene-nitrokey closed 4 months ago

sosthene-nitrokey commented 4 months ago

This would supersede #484. We need to pay attention to the Drop impl depending on the order we merge PRs

This adds a couple of methods to the Storage sealed trait to deal with the fact that Borrow cannot be used in concurrent code: