3 ms·
-> Result<MyStruct, Box<Error>> accepts almost any type of error (via dynamic dispatch of things that implement std::error::Error trait).
by pornel 10y ago
-> Result<MyStruct, Box<Error>>
accepts almost any type of error (via dynamic dispatch of things that implement std::error::Error trait).
- ww520 10y agoThat's a good idea. It's the shotgun approach.