3 ms·
I am confused by your responses because the "reborrowing" mechanism in the Rust compiler is pretty widely discussed. https://smallcultfollowing.com/babysteps/b
by legerdemain 3y ago
I am confused by your responses because the "reborrowing" mechanism in the Rust compiler is pretty widely discussed.
https://smallcultfollowing.com/babysteps/blog/2013/11/20/parameter-coercion-in-rust/ https://smallcultfollowing.com/babysteps/blog/2013/11/20/par...
https://haibane-tenshi.github.io/rust-reborrowing/ https://haibane-tenshi.github.io/rust-reborrowing/
https://stackoverflow.com/questions/62960584/do-mutable-references-have-move-semantics https://stackoverflow.com/questions/62960584/do-mutable-refe...
Meanwhile, you are insisting on reasoning about Rust from first principles and making lists of links to documentation that is, at best, tangentially relevant.
For example, the fact that `&T` implements Deref is not relevant here. Applying Deref::deref to a &T returns a &T. For most intents, it's a no-op.