3 ms·
Rust developers are loathe to use RefCells when a mutable borrow does the trick. It's preferable to rearchitect your solution than to use a RefCell. RefCells ar
by ModernMech 2y ago
Rust developers are loathe to use RefCells when a mutable borrow does the trick. It's preferable to rearchitect your solution than to use a RefCell. RefCells are a last resort, just as with unsafe.