Warning
This post was published 34 days ago. The information described in this article may have changed.
I have collected some basic links to start learning about reborrowing which apparently isn't very well documented, and I haven't found it in the book. (I'm at Ch 9-10)
I wonder whether there are some other links you would add, and what does the addition of that information to the book depend upon (or what's blocking it?) ?
haibane_tenshi's blog - Obscure Rust: reborrowing is a half-baked feature
better documentation of reborrowing ยท Issue #788 ยท rust-lang/reference ยท GitHub this is the main issue that keeps track of it and links the stack overflow posts below.
https://stackoverflow.com/questions/62960584/do-mutable-references-have-move-semantics
https://stackoverflow.com/questions/30535529/variable-binding-moving-a-mut-or-borrowing-the-referent
I just thought it might be useful for others as well which is why I'm sharing them. (I didn't searched much on this forum yet, although I should have.)
This (loosely related) doesn't seem explained in the book either but maybe it is. My understanding is that mutability of variable and of a reference very different things. It's somewhat clear though that the ownership is transferred and so the function gets to decide, but this is quite different with references since reborrow may happen in that case, instead of a move.
My point is not that this doesn't make sense but it could be better documented/Explained maybe?
===========
Edits to add some extra links
Some posts on this topic and forum that I have found quite interesting are
4 posts - 3 participants
๐ท๏ธ rust_feed