/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
| | ricardomartins.cc

[AI summary] This technical blog post explains the concept of interior mutability in Rust, providing a deep dive into how std::cell::Cell and std::cell::RefCell allow mutable state within immutable structures and discusses their use cases and safety guarantees.
1.2 parsecs

Travel
| |
| | boats.gitlab.io

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.
2.5 parsecs

Travel
| |
| | manishearth.github.io

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, ...
2.3 parsecs

Travel
| |
| | dlang.org

D Programming Language
23.1 parsecs

Travel
|