Copy trait
Types whose values are copied, not moved, on assignment.
Copy types (integers, bool, char, &T, ...) are duplicated bit for bit on assignment; the source stays usable.
Loading interactive…
Examples
let b = a;witha: i32copies the number, soaandbare both still usable; a tuple of integers behaves the same way.
See also