Type Definition dangerous::error::BacktraceWalker [−][src]
type BacktraceWalker<'a> = dyn FnMut(usize, &dyn Context) -> bool + 'a;
Expand description
A dynamic function for walking a context backtrace.
Returns true
if the walk should continue, false
if not.
Parameters
parent depth
(the parent depth of the context starting from1
).<context>
(the context at the provided depth).
Parent depth
Contexts are returned from the top of the stack to the bottom. Child
contexts will follow after a parent context and will share the same parent depth
value.