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

Method new

155-min-stack.rs:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected