Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ new
Method
new
225-implement-stack-using-queues.rs:6–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
5
impl MyStack {
6
fn new() -> Self {
7
MyStack {
8
stack_box: vec!()
9
}
10
}
11
12
fn push(&mut self, x: i32) {
13
self.stack_box.push(x);
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected