A

Admin • 832.27K Points
Coach

Q. What is the purpose of the 'Result' type in Rust?

  • (A) To store strings
  • (B) To handle errors
  • (C) To define structs
  • (D) To manage memory
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

'Result' is used for error handling and represents success or failure.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.