Closed Anton-4 closed 2 years ago
I’m not following exactly what you want… check out the section on delegating backtraces in https://docs.rs/snafu/0.6.10/snafu/guide/attributes/index.html#controlling-backtraces
Also, if you own an instance (bar_err: BarError
) you can match on it and take ownership of the backtrace. Nothing SNAFU specific; regular Rust.
delegating backtraces is what I needed, thanks @shepmaster :)
Hi, I'm really enjoying snafu, thanks for creating and maintaining it :heart:
When converting one Snafu error to another one, I want to keep the
Backtrace
. However, I can only acquire a reference using thebacktrace()
function that can not be dereferenced, becauseBacktrace
does not implementCopy
. Is there any way to achieve my intended goal?