A

Admin • 828.03K Points
Coach

Q. Which trait is automatically implemented when using `#[derive(Clone)]`?

  • (A) Copy
  • (B) Clone
  • (C) Eq
  • (D) Debug
  • Correct Answer - Option(B)
  • Views: 4
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`#[derive(Clone)]` auto-implements the `Clone` trait for a struct or enum.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.