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

Method dequeue

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

Source from the content-addressed store, hash-verified

37 }
38
39 fn dequeue(&mut self) -> Option<T> {
40 if self.len() > 0 {
41 self.data.pop()
42 } else {
43 None
44 }
45 }
46}
47
48// Avl 树定义,使用的是枚举

Callers 2

levelorderMethod · 0.45
levelorderFunction · 0.45

Calls 2

lenMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected