Can I borrow that? (Reborrow traits)
by Aapo Alasuutari
Exclusive references make Rust, yet they cannot be built within
Rust: the core act of reborrowing, that is giving temporary
exclusive access and reclaiming exclusivity afterwards, is a
feature implemented outside of the language. For custom user
types or even reference wrappers like Option<&mut T> the best
one can do is use explicit methods like as_deref_mut or
rb_mut. The Reborrow traits project goal aims to fix this
gap and make exclusive references buildable within the
language. Come hear the how and why, why-nots, and what is to
come!
Aapo Alasuutari
he/himAapo Alasuutari is a TypeScript developer by day, but by night transforms into a data-oriented design zealot building a JavaScript engine in Rust. At other times he sings in two choirs and collects side-projects like an enthusiastic blind magpie.