Expand description
Shared miette configuration and NamedSource helpers.
Structs§
- Labeled
Span - A labeled
SourceSpan. - Source
Span - Span within a
SourceCode
Functions§
- install_
miette_ handler - Install the miette panic hook and graphical report handler.
- named_
source_ from_ bytes - Build a
NamedSourcefrom a name and raw bytes. - named_
source_ from_ str - Build a
NamedSourcefrom a name and a UTF-8 string slice. - pretty_
json_ for_ display - Pretty-print
bodyas JSON for display in aNamedSource. - span_
at_ line_ column - Convert a 1-based
(line, column)pair (as produced byserde_json::Error) into aSourceSpanpointing at that byte insidebody. - span_
for_ quoted_ literal - Find the span of a JSON quoted literal (key or string value) inside
bytes.