A

Admin • 828.03K Points
Coach

Q. Which keyword is used to define a trait implementation for a struct in Rust?

  • (A) interface
  • (B) impl
  • (C) trait
  • (D) struct
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`impl` is used to implement methods or traits for structs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.