使用旧的 Rust 2015
0.1.1
2018 年 4 月 28 日
0.1.0
2018 年 4 月 28 日
#29 在 #threading
Download history
34/week @ 2024-03-13
116/week @ 2024-03-20
50/week @ 2024-03-27
37/week @ 2024-04-03
28/week @ 2024-04-10
30/week @ 2024-04-17
34/week @ 2024-04-24
20/week @ 2024-05-01
25/week @ 2024-05-08
59/week @ 2024-05-15
113/week @ 2024-05-22
125/week @ 2024-05-29
141/week @ 2024-06-05
172/week @ 2024-06-12
211/week @ 2024-06-19
167/week @ 2024-06-26
716 每月下载量 用于 momen
clone_all
clone_all
提供了一个简单的宏,用于克隆传递给它的所有变量。
例如
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) ;