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