3 ms·
> I still find it confusing sometimes because you're not setting lifetime, you're just giving it a name so that the compiler can reason about it. With Rc you'r
by samus 1y ago
> I still find it confusing sometimes because you're not setting lifetime, you're just giving it a name so that the compiler can reason about it.
With Rc you're telling the compiler "I don't know the lifetime, or can't describe it to you using the Rust type system. Please figure it out at runtime."