S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of match guards in Rust?

  • (A) To skip match arms
  • (B) To create loops
  • (C) To add extra conditions in match arms
  • (D) To define constants
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
Match guards are additional if conditions within match arms.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.