Crates.io | pinned-queue |
lib.rs | pinned-queue |
version | 0.1.1 |
source | src |
created_at | 2023-11-23 12:05:05.693636 |
updated_at | 2023-11-23 13:07:42.259997 |
description | Queue-like data structure whose elements can never move |
homepage | https://github.com/Redfire75369/pinned-queue#readme |
repository | https://github.com/Redfire75369/pinned-queue |
max_upload_size | |
id | 1046047 |
size | 22,073 |
Queue-like data structure whose elements can never move.
Inspired by pinned_vec.
use pinned_queue::PinnedQueue;
let mut queue = PinnedQueue::new();
queue.push_back(1);
queue.push_back(2);
queue.pop_front();
queue.pop_front();