Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ size
Method
size
code/chapter03/hot_potato.rs:34–36 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
32
}
33
34
fn size(&self) -> usize {
35
self.data.len()
36
}
37
}
38
39
fn hot_potato(names: Vec<&str>, num: usize) -> &str {
Callers
2
dequeue
Method · 0.45
hot_potato
Function · 0.45
Calls
1
len
Method · 0.45
Tested by
no test coverage detected