3 ms·
There's a lot of stuff in Rust that makes such types manageable. Also, such types should always be expressed as: struct MyFancySharedThing<T> { thing: Rc<R
by Argorak 10y ago
There's a lot of stuff in Rust that makes such types manageable. Also, such types should always be expressed as:
struct MyFancySharedThing<T> {
thing: Rc<RefCell<T>>
}
Rc and RefCell are implementation details and should _always_ be hidden.