Expand description
Helper functions, types and macros that didn’t fit anywhere else.
Structs
Helper type that formats a
Span
in a human-readable way.Helper type for correctly and reasonably “pretty”-printing any
TokenStream
in
a grammar- and language-agnostic way. This mostly means dealing with parentheses,
so that nested structures don’t end up on one single long line.Traits
Extension trait for formatting the span of AST nodes in a human-readable manner,
and for (re-)computing byte offsets into the source based on the line/column
location, since this information is not exposed by the public API of
Span
.Functions
Helper for implementing
Display
in terms of ToTokens
.