What lifetimes do I use to create Rust structs that reference each other cyclically?

前端 未结 2 1324
夕颜
夕颜 2020-11-28 14:02

I\'d like to have struct members that know their parent. This is approximately what I\'m trying to do:

struct Parent<\'me> {
    children: Vec

        
2条回答
提交回复
热议问题