MCPcopy Index your code
hub / github.com/QMHTMY/RustBook / clear

Method clear

publication/code/chapter04/lvec.rs:46–49  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

44 }
45
46 fn clear(&mut self) {
47 self.size = 0;
48 self.head = None;
49 }
50
51 fn push(&mut self, elem: T) {
52 let node = Node::new(elem);

Callers 2

appendMethod · 0.45
basicFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected