A

Admin • 802.91K Points
Coach

Q. What does the ? operator do in Rust?

  • (A) Matches a pattern
  • (B) Handles errors by propagating them
  • (C) Makes a value optional
  • (D) Converts an Option to a Result
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
? operator returns early with an error if Result is Err.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.