4 ms·
You can somewhat emulate this with Weak pointers: https://doc.rust-lang.org/std/rc/struct.Weak.html https://doc.rust-lang.org/std/rc/struct.Weak.html They don
by dpbriggs 7y ago
You can somewhat emulate this with Weak pointers:
https://doc.rust-lang.org/std/rc/struct.Weak.html https://doc.rust-lang.org/std/rc/struct.Weak.html
They don't count against ownership, but do bring some extra headaches of their own (referencing counting overhead, etc).