#clone #threading #move #closures #name

clone_all

clone_all!(my,variables,with,long,names);

2 releases

Uses old Rust 2015

0.1.1 Apr 28, 2018
0.1.0 Apr 28, 2018

#30 in #threading

Download history 7/week @ 2023-12-18 3/week @ 2023-12-25 12/week @ 2024-01-08 5/week @ 2024-01-15 4/week @ 2024-01-22 4/week @ 2024-01-29 10/week @ 2024-02-05 14/week @ 2024-02-12 40/week @ 2024-02-19 33/week @ 2024-02-26 34/week @ 2024-03-04 47/week @ 2024-03-11 37/week @ 2024-03-18 116/week @ 2024-03-25 52/week @ 2024-04-01

258 downloads per month
Used in momen

MIT/Apache

6KB

clone_all

clone_all provides a simple macro to clone all variables passed to it.

For example:

let x: String = "hello world".into();
{
    clone_all!(x);
    something_that_moves(x);
}
// we can still use x, because the x in the scope was cloned.
println!("{}", x);

No runtime deps