[−][src]Macro tracerr::map_from_and_new
Captures new Frame
in the invocation place and wraps the given error
into Traced
wrapper containing this Frame
with applying required
From
implementation for the wrapped error. If the error is a Traced
already then just applies From
implementation and growth its Trace
with the captured Frame
.
Examples
use tracerr::Traced; let err: Traced<u8> = tracerr::new!(8); let err: Traced<u64> = tracerr::map_from_and_new!(err);