|
You are here |
ryhl.io | ||
| | | | |
www.ralfj.de
|
|
| | | | | ||
| | | | |
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. | |
| | | | |
www.abubalay.com
|
|
| | | | | [AI summary] The blog post introduces the dioptre crate, a Rust proc-macro for struct field reflection, and discusses Cell field projection techniques to enable more flexible interior mutability in Rust programs. | |
| | | | |
blog.skylight.io
|
|
| | | One of the coolest features of Rust is how it automatically manages resources for you, while still guaranteeing both safety (no segfaults) and high performance. Because Rust is a different kind of programming language, it might be difficult to understand what I mean, so let me be perfectly clear: * In | ||