Re:Writing Pythonic Rust
by lmm on Tuesday May 25, 2021 @02:13AM
(#27273352)
The lifetime/borrow-checking is the mutex. If you've got a database client that must only be used by one caller at a time, make a function that takes the client as &mut.
[ Parent
| on HN ]
There are no comments on this comment yet.