`&T`, `&mut T`, `Pin<&mut T>` and `&Cell<T>`: Ways of Borrowing a `T`

· Users Rust Lang · April 22, 2026, 10:52 a.m.
Summary
This blog post discusses the concept of interior mutability in Rust, specifically how types like `&Cell<T>` can be used to allow mutable borrowing in ways not typically considered. It outlines the technical specifications and behaviors of various borrowing techniques in Rust, including details about memory safety and limitations. The author encourages discussion on the nature of interior mutability and its implications for type design.
AUTHOR