MCPcopy Index your code
hub / github.com/douchuan/algorithm / push

Method push

src/common/stack.rs:12–14  ·  view source on GitHub ↗

Adds the item to this stack.

(&mut self, v: T)

Source from the content-addressed store, hash-verified

10impl<T> Stack<T> {
11 /// Adds the item to this stack.
12 pub fn push(&mut self, v: T) {
13 self.ll.push_front(v);
14 }
15
16 /// Removes and returns the item most recently added to this stack.
17 pub fn pop(&mut self) -> Option<T> {

Callers 15

sub_search_kmpFunction · 0.80
sub_search_brute_forceFunction · 0.80
collect_prefixFunction · 0.80
collect_matchFunction · 0.80
collect_prefixFunction · 0.80
collect_matchFunction · 0.80
to_charsMethod · 0.80
sort_descFunction · 0.80
mergeFunction · 0.80
insertMethod · 0.80
to_stringMethod · 0.80
newMethod · 0.80

Calls 1

push_frontMethod · 0.80

Tested by 8

queueFunction · 0.64
stackFunction · 0.64
index_min_pqFunction · 0.64
index_max_pqFunction · 0.64
ccFunction · 0.64
symbol_graphFunction · 0.64
degree_of_separationFunction · 0.64
locate_fileFunction · 0.64