Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ main
Function
main
232-implement-queue-using-stacks.rs:32–40 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
}
31
32
fn main() {
33
let mut obj = MyQueue::new();
34
obj.push(1);
35
obj.push(2);
36
let ret_2: i32 = obj.pop();
37
let ret_3: i32 = obj.peek();
38
let ret_4: bool = obj.empty();
39
println!(
" {:?} {:?} {:?}"
, ret_2, ret_3, ret_4);
40
}
Callers
nothing calls this directly
Calls
4
peek
Method · 0.80
push
Method · 0.45
pop
Method · 0.45
empty
Method · 0.45
Tested by
no test coverage detected