MCPcopy 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
39fn hot_potato(names: Vec<&str>, num: usize) -> &str {

Callers 2

dequeueMethod · 0.45
hot_potatoFunction · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected