Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ is_empty
Method
is_empty
publication/code/chapter08/binary_tree.rs:21–23 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
19
}
20
21
fn is_empty(&self) -> bool {
22
0 == self.len()
23
}
24
25
fn len(&self) -> usize {
26
self.data.len()
Callers
2
levelorder
Method · 0.45
levelorder
Function · 0.45
Calls
1
len
Method · 0.45
Tested by
no test coverage detected