rust 所有权的问题?-灵析社区

喵酱魔法师

并不是结构体成员不能 move 。 你的成员函数里,self 是一个 reference 。reference 并没有所有权,所以也就无法发生所有权移动。

阅读量:1

点赞量:0

问AI