3 ms·
SNAFU follows much the same idea: we have an attribute you can add [0] when you want to allow directly implementing `From`. Like thiserror, you can also mark an
by shepmaster 2y ago
SNAFU follows much the same idea: we have an attribute you can add [0] when you want to allow directly implementing `From`. Like thiserror, you can also mark an error as transparent [1] when even the error existing doesn't provide useful information.
[0]: https://docs.rs/snafu/latest/snafu/derive.Snafu.html#disabling-the-context-selector https://docs.rs/snafu/latest/snafu/derive.Snafu.html#disabli...
[1]: https://docs.rs/snafu/latest/snafu/derive.Snafu.html#delegating-to-the-underlying-error https://docs.rs/snafu/latest/snafu/derive.Snafu.html#delegat...