Weak reference | Learn Rust part 57

Smart Contract Programmer · 12:15

Using Rc to build cyclic structures in Rust, such as a graph where two nodes list each other as neighbors, causes a memory leak. Each node holds a strong reference to the other, so neither strong count can reach zero...

Read the full summary on tuber

Redirecting...