Expand description
Pretty, human-readable printing of proc_macro2::Span
s.
Structs§
- Pretty
RowCol - Helper struct which displays the span as
row:col
for human reading. - Pretty
Span - 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
orCARGO_MANIFEST_DIR
from the path prefix if possible.