A

Admin • 833.24K Points
Coach

Q. What does the 'unwrap()' method do on a Result type?

  • (A) Returns the error
  • (B) Returns the value or panics
  • (C) Ignores the value
  • (D) Converts to Option
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

'unwrap()' returns the value if Ok, or panics if Err.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.