A

Admin • 833.24K Points
Coach

Q. Which of the following best describes the `Copy` trait in Rust?

  • (A) Enables heap allocation
  • (B) Allows shallow copy via assignment
  • (C) Used for deep cloning
  • (D) Implements runtime checks
  • Correct Answer - Option(B)
  • Views: 36
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`Copy` allows types to be duplicated without invalidating the original value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.