MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / dequeue

Method dequeue

publication/code/chapter08/rbtree.rs:33–39  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

31 }
32
33 fn dequeue(&mut self) -> Option<T> {
34 if self.len() > 0 {
35 self.data.pop()
36 } else {
37 None
38 }
39 }
40
41 fn is_empty(&self) -> bool {
42 0 == self.len()

Callers 1

levelorderMethod · 0.45

Calls 2

lenMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected