调用trait中需要mutable借用方法影响后续对象的使用
📝
内容提要
struct Test<'a> { v: &'a i32, } trait MyTestTrait { type Output; fn borrow_mut(self) -> Self::Output; } impl<'a> MyTestTrait for &'a mut Test<'a> { type Output = i32; fn...
🏷️
标签
➡️