S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which type must be used when working with recursive types?

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

Explanation by: Shyam Dubey

Box<T> enables recursive types by allocating them on the heap.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.