News for hackers. Stuff that matters.
Re:The Next Steps for Single Ownership and RAII by btschaegg on Friday July 17, 2020 @02:53AM (#23867878)
Since I'm still starting out with Rust, there's probably just something I'm missing here, but couldn't you easily solve that with `Cell<T>` or `RefCell<T>`?
Re:The Next Steps for Single Ownership and RAII by ridiculous_fish on Friday July 17, 2020 @03:33AM (#23868126)
I hope to see an expert answer to this question. In my lame attempt, Cell was too awkward and RefCell was also awkward with a side of runtime cost.