Перейти к содержимому

Can I borrow that? (Reborrow traits) (Aapo Alasuutari at RustWeek)

RustNL

0:00 / 0:00

Can I borrow that? (Reborrow traits) (Aapo Alasuutari at RustWeek)

964 просмотра · 3 мес. назад
RustNL
6,69 тыс. подписчиков
964 просмотра · 3 мес. назад
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! About Aapo Alasuutari (he/him): Aapo 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. git: https://github.com/aapoalas bluesky: https://bsky.app/profile/aapoalas.try... linkedin:   / aapo-alasuutari-b4968b63   website: https://trynova.dev/ This talk was given at RustWeek 2026 as part of the Rust Project track on Wednesday 20 May. You can find a playlist of all talks in this track at    • RustWeek 2026 Rust Project Track Day 2  , and a playlist of all RustWeek 2026 talks at    • RustWeek 2026 All Talks   For information about RustWeek 2027, go to https://2027.rustweek.org. We hope to see you there!