The borrow checker within
(smallcultfollowing.com)
from turbohz@programming.dev to rust@programming.dev on 02 Jun 2024 15:09
https://programming.dev/post/14975766
from turbohz@programming.dev to rust@programming.dev on 02 Jun 2024 15:09
https://programming.dev/post/14975766
threaded - newest
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
.Didn’t read the post yet. But for future reference, posting archived links to posts from that website is probably preferable since it doesn’t appear to be hosted in a way that can handle large traffic.
web.archive.org/web/…/the-borrow-checker-within/