Structs

Metadata to highlight the span of a MIR BasicBlock, Statement, or Terminator.

Constants

Functions

fn_span 🔒
hir_body 🔒
Format a string showing the start line and column, and end line and column within a file.
tooltip 🔒
trim_span 🔒
Generate a spanview HTML+CSS document for the given local function def_id, and a pre-generated list SpanViewables.
Write a spanview HTML+CSS file to analyze MIR element spans.
Recursively process each ordered span. Spans that overlap will have progressively varying styles, such as increased padding for each overlap. Non-overlapping adjacent spans will have alternating style choices, to help distinguish between them if, visually adjacent. The layer is incremented for each overlap, and the alt bool alternates between true and false, for each adjacent non-overlapping span. Source code between the spans (code that is not in any coverage region) has neutral styling.
write_span 🔒