/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.ralfj.de
| | boats.gitlab.io
2.5 parsecs away

Travel
| | Today I realized a new crate called pin-cell. This crate contains a type called PinCell, which is a kind of cell that is similar to RefCell, but only can allow pinned mutable references into its interior. Right now, the crate is nightly only and no-std compatible. How is the API of PinCell different from RefCell? When you call borrow_mut on a RefCell, you get a type back that implements DerefMut, allowing you to mutate the interior value.
| | www.abubalay.com
0.8 parsecs away

Travel
| | [AI summary] The author introduces the dioptre crate, a Rust proc-macro that enables field projection for Cell types to solve interior mutability and borrowing issues.
| | manishearth.github.io
2.3 parsecs away

Travel
| | This post is now a part of the official rust book In my previous post I talked a bit about why the RWlock pattern is important for accessing data, ...
| | sebi.io
13.1 parsecs away

Travel
| This guide builds on the guide from Amarit Rathie, which has been an indispensible resource in getting me started with cross-compilation at all. Mine has been updated for the latest versions of macOS at the time, and I've tried it on an M2 Mac - here, I'm the steps (and workarounds) required to get it to work for me - explanations are kept short, and I encourage you to reference the original blogpost to get a better understanding of what's going on.