MCPcopy Index your code
hub / github.com/douchuan/algorithm / enqueue

Method enqueue

src/common/queue.rs:20–22  ·  view source on GitHub ↗

Adds the item to this queue

(&mut self, v: T)

Source from the content-addressed store, hash-verified

18impl<T> Queue<T> {
19 /// Adds the item to this queue
20 pub fn enqueue(&mut self, v: T) {
21 self.ll.push_back(v);
22 }
23
24 /// Removes and returns the item on this queue that was least recently added
25 pub fn dequeue(&mut self) -> Option<T> {

Callers 15

keys_with_prefixMethod · 0.45
collect_prefixFunction · 0.45
collect_matchFunction · 0.45
collect_prefixFunction · 0.45
collect_matchFunction · 0.45
insertMethod · 0.45
newMethod · 0.45
primMethod · 0.45
scanMethod · 0.45
primMethod · 0.45
scanMethod · 0.45
newMethod · 0.45

Calls 1

push_backMethod · 0.80

Tested by 5

queueFunction · 0.36
min_pqFunction · 0.36
max_pqFunction · 0.36
index_min_pqFunction · 0.36
index_max_pqFunction · 0.36