Relative Content

Tag Archive for rust

Rust – Passing Rc references between different structs

I’m currrently trying to implement a data structure which requires its instantiator to pass a reference to itself. I’ve heard about using Rc<> in these situations to avoid lifetime limitations, though I’m not entirely sure how to implement it in this particular structure.