The solution is to change the option to &Option<&T> using as_ref() . Rust forbids transferring of ownership of objects while the objects are borrowed. When the ...
確定! 回上一頁