MCPcopy Create free account
hub / github.com/douchuan/algorithm / pop

Method pop

src/common/stack.rs:17–19  ·  view source on GitHub ↗

Removes and returns the item most recently added to this stack.

(&mut self)

Source from the content-addressed store, hash-verified

15
16 /// Removes and returns the item most recently added to this stack.
17 pub fn pop(&mut self) -> Option<T> {
18 self.ll.pop_front()
19 }
20
21 /// Returns (but does not remove) the item most recently added to this stack.
22 pub fn peek(&self) -> Option<&T> {

Callers 8

collect_prefixFunction · 0.45
collect_matchFunction · 0.45
collect_prefixFunction · 0.45
collect_matchFunction · 0.45
dequeueMethod · 0.45
markMethod · 0.45
iterateMethod · 0.45
stackFunction · 0.45

Calls 1

pop_frontMethod · 0.80

Tested by 1

stackFunction · 0.36