Re:Overview of Rust error handling libraries
by shepmaster on Friday November 22, 2019 @09:04PM
(#21611937)
A benefit of SNAFU is that the `From` trait is implemented against the internal-by-default context selectors. Since enum variants are public if the enum is, SNAFU also offers a way to wrap an opaque newtype around the internal error, allowing the implementor to choose exactly what public API their error exposes.
[ Parent
| on HN ]
There are no comments on this comment yet.