Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ len
Method
len
publication/code/chapter08/binary_tree.rs:25–27 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
23
}
24
25
fn len(&self) -> usize {
26
self.data.len()
27
}
28
29
fn enqueue(&mut self, val: T) -> Result<(), String> {
30
if Self::len(&self) == self.cap {
Callers
2
is_empty
Method · 0.45
dequeue
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected