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