Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derekbanas/Rust-Tutorial
/ customer
Function
customer
main.rs:1072–1074 ·
view source on GitHub ↗
(the_bank: Arc<Mutex<Bank>>)
Source
from the content-addressed store, hash-verified
1070
}
1071
1072
fn customer(the_bank: Arc<Mutex<Bank>>) {
1073
withdraw(&the_bank, 5.00);
1074
}
1075
1076
let bank: Arc<Mutex<Bank>> =
1077
Arc::new(Mutex::new(Bank { balance: 20.00 }));
Callers
1
main
Function · 0.85
Calls
1
withdraw
Function · 0.85
Tested by
no test coverage detected