In Rust, what's the pattern for when you need a reference-holding struct to sometimes own its referenced data?

后端 未结 0 1044
一向
一向 2020-11-27 10:12

Consider the following data structure:

struct ReferenceHoldingStruct<\'a> {
    pub prop: &\'a str
}


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