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

Method pop

publication/code/chapter04/infix_to_postfix.rs:24–28  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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

Callers 2

par_checker3Function · 0.45
infix_to_postfixFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected