Re:Mental models around Ok-Wrapping
by _bxg1 on Friday April 10, 2020 @06:50PM
(#22838165)
For cases where you're confident a Result won't be an error, it has a .unwrap() method that allows you to skip handling the error case and escalates it to a panic instead. You can even pass a custom error-message string.
[ Parent
| on HN ]
There are no comments on this comment yet.