Another blog post about ergonomic ref counting in Rust: smallcultfollowing.com/babysteps/bl...
smallcultfollowing.comJust call clone (or alias) · baby steps
Another blog post about ergonomic ref counting in Rust: smallcultfollowing.com/babysteps/bl...
I haven't thought about this too hard, but I think explicit captures might have some nice interactions with theoretical partial borrows. In this case it'd could be a "partial capture by clone": move(cx.request_name.clone()) || { foo(cx.request_name); // request_name is a "partial clone" here }
0 reposts0 likes