Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
levelorder
Method · 0.45
levelorder
Function · 0.45
Calls
2
len
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected