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

Function main

225-implement-stack-using-queues.rs:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32fn main() {
33 let mut obj = MyStack::new();
34 obj.push(1);
35 obj.push(2);
36 obj.push(3);
37 let ret_2: i32 = obj.pop();
38 let ret_3: i32 = obj.top();
39 let ret_4: bool = obj.empty();
40 println!("{:?} {:?} {:?}", ret_2, ret_3, ret_4);
41}

Callers

nothing calls this directly

Calls 4

pushMethod · 0.45
popMethod · 0.45
topMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected