Take ownership and borrow in Rust constructor function

前端 未结 0 646
一整个雨季
一整个雨季 2021-01-15 23:32

there, I am still quite new to rust. I ran into a problem where I need to take ownership of a variable, and at the same time create a different variable, that gets a borrow

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