u/neutralinostaritertools · rustin r/rust • Recommends
On “A great SO answer about std::cell”
Very nice, and it's important for rust to have good explanations for its core concepts. I'm a big fan of the ownership explanation that aturon has given in talks a few times. (~~I am on mobile, so no link handy~~ I'm really handy with links actually: **aturon on ownership**)
A nitpick is that Cell uses no runtime checking at all, it changes aliasing information given to the compiler and disallows references to the interior (=no aliasing *except the aliasing with `Cell` around it*), at compile time.