mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-31 09:04:14 +01:00
284 B
284 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
{{#include ../examples/tutorial12.rs}}
# #[allow(dead_code)]
# mod chainerror {
{{#rustdoc_include ../src/lib.rs:-1}}
# }