Title here
Summary here
Traits that are important to understand due to their broad applicability / frequency in Rust.
Blog post with a bit more detail. Summary:
Drop
impl and/or are stored on the heap.Clone
is a more arbitrary duplication of types - so can include “deep copies”, heap-allocated types, etc.Copy
types must also implement Clone
, but not all Clone
types are also Copy
.https://doc.rust-lang.org/std/marker/trait.Copy.html ↩︎