[−][src]Macro failure_ext::err_downcast
Downcast matching.
Usage:
let res = err_downcast! { err, ty: Type => { /* use ty as Type */ }, yours: YourType => { /* use yours as YourType */ }, };
Where err
is a anyhow::Error
.
When one of the type arms match, then it returns Ok(value from expr), otherwise Err(err).
It's like downcast but for multiple types.