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

Method pop

code/chapter03/postfix_eval.rs:20–25  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

18 }
19
20 fn pop(&mut self) -> Option<T> {
21 if self.top == 0 { return None; }
22 self.top -= 1;
23
24 self.data.pop()
25 }
26}
27
28fn postfix_eval(postfix: &str) -> Option<i32> {

Callers 1

postfix_evalFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected