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

Method dequeue

publication/code/chapter08/binary_tree.rs:38–44  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

36 }
37
38 fn dequeue(&mut self) -> Option<T> {
39 if self.len() > 0 {
40 self.data.pop()
41 } else {
42 None
43 }
44 }
45}
46
47// 二叉树子节点链接

Callers 2

levelorderMethod · 0.45
levelorderFunction · 0.45

Calls 2

lenMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected