3 ms·
How is this any different than using a mutable reference or pointer to the "T"? struct Pointer<T> { ptr: *mut T } struct Pointer<T> { ptr: &mut T } This i
by gavinray 4y ago
How is this any different than using a mutable reference or pointer to the "T"?
struct Pointer<T> { ptr: *mut T }
struct Pointer<T> { ptr: &mut T }
This is just adding a ton of overhead and memory usage
- scotty79 4y agoYou can safely pass Rc<RefCell<_>> around your program and store inside any structures without pretty much any concern for any lifetimes.