MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / push

Method push

232-implement-queue-using-stacks.rs:13–15  ·  view source on GitHub ↗
(&mut self, x: i32)

Source from the content-addressed store, hash-verified

11 }
12
13 fn push(&mut self, x: i32) {
14 self.v.push(x);
15 }
16
17 fn pop(&mut self) -> i32 {
18 let ret = self.v[0];

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected