Login
Roast topics
Find topics
Find it!
From:
Cracking the Shell
(Uncensored)
subscribe
Bypassing the borrow checker - do ref -> ptr -> ref partial borrows cause UB?
https://walnut356.github.io/posts/partial-borrow-pointer-ub/
links
backlinks
Roast topics
Find topics
Roast it!
Partial borrows across function boundaries don't really work in Rust. Unfortunately, that's kind of a major issue. There are workarounds, some are outlined here, but all of them come with pretty major drawbacks.