3 ms·
That can be done by either returning a tuple or providing a way to get a partial value out of your error type. (Result is generic over the error type, so you ca
by pcwalton 12y ago
That can be done by either returning a tuple or providing a way to get a partial value out of your error type. (Result is generic over the error type, so you can add whatever extra data you'd like to your errors without forcing your callers to downcast.)