8 ms·
You may be interested in something like https://github.com/tailhook/quick-error https://github.com/tailhook/quick-error. It lets you easily implement From trait
by kancer 9y ago
You may be interested in something like https://github.com/tailhook/quick-error https://github.com/tailhook/quick-error. It lets you easily implement From traits for errors so that you can convert between error types.