the.bay.news

How to re-throw any error with `?`

The Rust Programming Language Forum
How to re-throw any error with `?`
Hello, To re-throw errors, ? is clear and powerful. But , inside a function where a lot of different errors can happen (io, mutex, ...) how to deal with errors when using this magical ? ? Is it possible to return a generic type with automatic conversion ? This question is certainly recurrent, but I don't find a fixed answer for this question.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.