Crates.io | queue-rs |
lib.rs | queue-rs |
version | 0.0.30 |
source | src |
created_at | 2022-09-12 06:12:43.766764 |
updated_at | 2022-09-13 00:42:02.791916 |
description | A Rust crate for queue |
homepage | |
repository | https://github.com/j5ik2o/queue-rs |
max_upload_size | |
id | 663488 |
size | 23,061 |
This is a crate that provides queue related functions.
use queue_rs::create_queue;
let mut queue = create_queue(QueueType::Vec, Some(32));
queueq.offer(i).unwrap();
let result: Option<i32> = queue.poll().unwrap();