ended6월 28일· 1 sources
How Rust Decides Whether an Array Is Copy
Why it matters
In Rust, we all know that Vec is not Copy , which means it does not implement the Copy trait. As a result, after iterating over a Vec like this: let num = vec![1, 2, 3]; for i in num { println!("{}", ...
1
Sources
+0
24h
—
Growth
85d
Active