Comment Comment by nulltype I think this is one of the main things Rust users don’t promote enough (I don’t see this in the article for instance).let lock = Arc::new(RwLock::new(1));This plus a few unwrapping things is enough to get you almost std::shared_ptr and then you can fight the borrow checker some other day. parent nulltype 3 years ago
let lock = Arc::new(RwLock::new(1));
This plus a few unwrapping things is enough to get you almost std::shared_ptr and then you can fight the borrow checker some other day.