MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / len

Method len

publication/code/chapter04/deque.rs:26–28  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

24 }
25
26 fn len(&self) -> usize {
27 self.data.len()
28 }
29
30 fn clear(&mut self) {
31 self.data = Vec::with_capacity(self.cap);

Callers 7

is_emptyMethod · 0.45
is_fullMethod · 0.45
add_frontMethod · 0.45
add_rearMethod · 0.45
remove_frontMethod · 0.45
remove_rearMethod · 0.45
nextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected