Module pretty_span

Module pretty_span 

Source
Expand description

Pretty, human-readable printing of proc_macro2::Spans.

Structs§

PrettyRowCol
Helper struct which displays the span as row:col for human reading.
PrettySpan
Helper struct which displays the span as path:row:col for human reading/IDE linking. Example: dfir\tests\surface_syntax.rs:42:18.

Functions§

make_source_path_relative
Strip DFIR_BASE_DIR or CARGO_MANIFEST_DIR from the path prefix if possible.