2 releases
Uses old Rust 2015
0.1.1 | Apr 28, 2018 |
---|---|
0.1.0 | Apr 28, 2018 |
#29 in #threading
716 downloads per month
Used in momen
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);