3 ms·
Many error types implement std::error::Error, maybe using that would make things easier. An example: https://play.rust-lang.org/?version=stable&mode=debug&edit
by rascul 2y ago
Many error types implement std::error::Error, maybe using that would make things easier.
An example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5da3cd06b72c80d06aa2eaa2fc74b4ef https://play.rust-lang.org/?version=stable&mode=debug&editio...
- ryandrake 2y agoHmm, I think I tried this a few times, but I could never get the right magical combination of dyn, Box<> and & to get it to compile.