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

Method pop

code/chapter03/infix_to_postfix.rs:22–26  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

20 }
21
22 fn pop(&mut self) -> Option<T> {
23 if self.top == 0 { return None; }
24 self.top -= 1;
25 self.data.pop()
26 }
27
28 fn peek(&self) -> Option<&T> {
29 if self.top == 0 { return None; }

Callers 2

par_checker3Function · 0.45
infix_to_postfixFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected