Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ push
Method
push
code/chapter03/par_checker2.rs:15–18 ·
view source on GitHub ↗
(&mut self, val: T)
Source
from the content-addressed store, hash-verified
13
}
14
15
fn push(&mut self, val: T) {
16
self.data.push(val);
17
self.top += 1;
18
}
19
20
fn pop(&mut self) -> Option<T> {
21
if self.top == 0 { return None; }
Callers
1
par_checker2
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected