3 ms·
> The power of Error comes from the fact that all error types impl Error, which means errors can be existentially quantified as a trait object. This manifests
by charlieflowers 11y ago
> The power of Error comes from the fact that all error types impl Error, which means errors can be existentially quantified as a trait object. This manifests as either Box<Error> or &Error.
It took me a couple of minutes to figure out that this means: "you can have heterogeneous collections of errors, and you can use them 'polymorphically' without knowing their concrete type."
In other words, you can use Error as a "trait object." I don't think a newbie to Rust would follow the language in the article here.
(Just a suggestion to help improve an outstanding article).