2 releases
0.1.1 | Nov 23, 2023 |
---|---|
0.1.0 | Nov 23, 2023 |
#2319 in Data structures
8KB
124 lines
Pinned Queue
Queue-like data structure whose elements can never move.
Inspired by pinned_vec.
Example Usage
use pinned_queue::PinnedQueue;
let mut queue = PinnedQueue::new();
queue.push_back(1);
queue.push_back(2);
queue.pop_front();
queue.pop_front();