Rust Lifetime of returned value should be equal to the struct lifetime

前端 未结 0 879
抹茶落季
抹茶落季 2021-02-15 03:45

Let\'s suppose I have code like this:

struct Struct0 {
   s1: Struct1,
   v: Vec>
}

impl Struct0 {
    fn a(&mut self) {
        self         


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