47
The borrow checker within
(smallcultfollowing.com)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
I’m curious how they plan on implementing interior references while keeping structs that contain them movable and without breaking the “moving structs is always just memcpy” assumption.
All of these would be great to have though, would make the language a lot more ergonomic. I hope they get implemented.
The more I thought about the interior references part the more questions I had! For example:
So, with all of that said, I'd love to read an article with more details on that part!
It's mentioned in footnote 6:
It would only work for references that are stable after the value they reference is moved. Think for example of a
&str
you get from aString
.