Module rustfmt_nightly::expr [−][src]
Structs
Enums
Controls where to put the rhs.
Functions
Checks whether a block contains no statements, expressions, comments, or inner attributes.
Checks whether a block contains at most one statement or expression, and no comments or attributes.
Returns true
if the last line of pat_str has leading whitespace and it is wider than the
shape’s indent.
Returns true if formatting next_line_rhs is better on a new line when compared to the original’s line formatting.
Returns true
if a function call or a method call represented by the given span ends with a
trailing comma. This function is used when rewriting macro, as adding or removing a trailing
comma from macro can potentially break the code.