How does Rust handle the "island of isolation" scenario for Rc
s and Arc
s?
An "island of isolation" is a situation where object A
contains a pointer to object B
and object B
contains a pointer to object A
, but there are no pointers to either objects anywhere else.
Is Rust smart enough to detect this or does it lead to memory leaks?