Skip to main content

render_stack

Function render_stack 

Source
pub fn render_stack(
    out: &mut dyn Write,
    frames: &[FrameView],
    raise_override: Option<(&str, u32)>,
    indent: &str,
    colored: bool,
) -> Result
Expand description

Render one node’s raise line plus caller frames.

raise_override is the (file, line) used for the raise line (the caller passes the captured Location when meaningful; see is_infra_path), else the raise frame’s own file:line is used. frames are innermost-first; caller frames indent three spaces past indent.