S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the keyword ref do in a match pattern?

  • (A) Creates a clone
  • (B) Creates a mutable reference
  • (C) Creates an immutable reference
  • (D) Performs recursion
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
ref allows binding to a reference in a pattern match.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.