how to refactor rust code to resolve borrow that reference parent in closure?

前端 未结 0 701
误落风尘
误落风尘 2021-02-01 11:55

trait OnUpdate {
    fn on_update(&mut self, x: &i32);
}
struct Foo {
    field: i32,
    cbs: Vec

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