A

Admin • 833.24K Points
Coach

Q. Which of these types allows dynamic dispatch?

  • (A) Box<T>
  • (B) Box<dyn Trait>
  • (C) Option<T>
  • (D) Vec<T>
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`Box<dyn Trait>` enables dynamic dispatch of trait objects.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.