How can I have a property that takes a mutable reference that will outlive itself?

前端 未结 0 1100
甜味超标
甜味超标 2020-11-29 13:59

Basically I have this struct:

struct Environment<\'a> {
  parent: Option<&\'a mut Environment<\'a>&g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题