Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexfertel/rust-algorithms
/ Queue
Class
Queue
src/data_structures/queue.rs:3–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
use std::collections::VecDeque;
2
3
pub struct Queue<T> {
4
vec: VecDeque<T>,
5
}
6
7
impl<T> Queue<T> {
8
pub fn new() -> Self {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected