Module rustc_ast_pretty::pprust::state
source ยท Expand description
AST pretty printing.
Note that HIR pretty printing is layered on top of this crate.
Modulesยง
Structsยง
- NoAnn ๐
Enumsยง
Constantsยง
- INDEN
T_ ๐UNIT
Traitsยง
- This trait is used for both AST and HIR pretty-printing.
Functionsยง
- all_
whitespace ๐ReturnsNone
if the firstcol
chars ofs
contain a non-whitespace char. Otherwise returnsSome(k)
wherek
is first char offset after that leading whitespace. Note thatk
may be outside bounds ofs
. - binop_
to_ ๐string - gather_
comments ๐ - literal_
to_ ๐string - Requires you to pass an input filename and reader so that it can scan the input text for comments to copy forward.
- space_
between ๐Should two consecutive tokens be printed with a space between them?