Expand description
Extract, classify and render backtrace frames for the clean error formatter.
Shows only our-code frames: the raise line (from the captured std::panic::Location
when meaningful, else the backtrace) plus our-code callers, with runs of third-party and
runtime frames collapsed into a βN framework frames hiddenβ marker. Pure functions over
FrameView so they unit-test without a real backtrace.
StructsΒ§
- Frame
View - A stack frame reduced to what we display and classify on.
EnumsΒ§
- Kind π
ConstantsΒ§
- INFRA_
FILE_ πFRAGMENTS - Path fragments identifying error-infrastructure files.
- INFRA_
SYMBOL_ πFRAGMENTS - Symbol substrings marking a frame as error construction/conversion.
FunctionsΒ§
- classify π
- clean_
function - Reduce a demangled symbol to its last segment, dropping
::{{closure}}and the::hXXXXhash suffix. - clean_
path - Clean a source path to a workspace-relative form for display.
- extract_
frames - Extract
FrameViews from a backtrace. Resolves a clone so an unresolved capture is symbolized only when formatted. - format_
frame π - hidden_
marker π - is_
infra π - is_
infra_ path - True if a path is error infrastructure, so a
Locationthere (e.g. aFrombody) is not a meaningful raise site. - is_ours π
- render_
callers π - render_
stack - Render one nodeβs raise line plus caller frames.