mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-31 00:56:41 +01:00
309 B
309 B
Deref for the ErrorKind
Because ChainError implements Deref to &T, we can also match on *e
instead of e.kind()
or call a function with &e
use crate::chainerror::*;
{{#include ../examples/tutorial12.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }