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

Method new

232-implement-queue-using-stacks.rs:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5impl MyQueue {
6
7 fn new() -> Self {
8 MyQueue {
9 v: vec!()
10 }
11 }
12
13 fn push(&mut self, x: i32) {
14 self.v.push(x);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected