AFAIK if you properly define the From/To operator, rust generates it for you.
And if you think about it, defining those operator is a good practice as it tells your program how to handle errors.
And if you think about it, defining those operator is a good practice as it tells your program how to handle errors.
Places where that approach really sucks include web api routes (unless I haven't figured out a trick yet). For example, rocket defines Responder on Result so long as the ok and error variants both define it, but since a boxed error is erased it doesn't function correctly.