StructsΒ§
- Control
Flow π
EnumsΒ§
- Expr
Type π - RhsAssign
Kind π - RhsTactics π
- Controls where to put the rhs.
FunctionsΒ§
- block_
contains_ πcomment - block_
has_ πstatements - block_
prefix π - can_
be_ πoverflowed_ expr - choose_
matcher π - choose_
rhs π - choose_
separator_ πtactic - extract_
comment π - extract_
pats_ πand_ cond - format_
expr π - is_
empty_ πblock - Checks whether a block contains no statements, expressions, comments, or inner attributes.
- is_
every_ πexpr_ simple - is_
method_ πcall - is_
nested_ πcall - is_
simple_ πblock - is_
simple_ πblock_ stmt - Checks whether a block contains at most one statement or expression, and no comments or attributes.
- is_
simple_ πexpr - is_
unsafe_ πblock - last_
line_ πoffsetted - Returns
true
if the last line of pat_str has leading whitespace and it is wider than the shapeβs indent. - lit_
ends_ πin_ dot - prefer_
next_ πline - Returns true if formatting next_line_rhs is better on a new line when compared to the originalβs line formatting.
- rewrite_
array π - rewrite_
assign_ πrhs - rewrite_
assign_ πrhs_ expr - rewrite_
assign_ πrhs_ with - rewrite_
assign_ πrhs_ with_ comments - rewrite_
assignment π - rewrite_
block π - rewrite_
block_ πinner - rewrite_
block_ πwith_ visitor - rewrite_
call π - rewrite_
cond π - rewrite_
else_ πkw_ with_ comments - Rewrite the
else
keyword with surrounding comments. - rewrite_
empty_ πblock - rewrite_
expr_ πaddrof - rewrite_
field π - rewrite_
index π - rewrite_
int_ πlit - rewrite_
label π - rewrite_
let π - rewrite_
let_ πelse_ block - Rewrite the divergent block of a
let-else
statement. - rewrite_
literal π - rewrite_
paren π - rewrite_
paren_ πin_ multi_ line - rewrite_
single_ πline_ block - rewrite_
string_ πlit - rewrite_
struct_ πlit - rewrite_
tuple π - rewrite_
tuple_ πin_ visual_ indent_ style - rewrite_
unary_ πop - rewrite_
unary_ πprefix - rewrite_
unary_ πsuffix - shape_
from_ πrhs_ tactic - span_
ends_ πwith_ comma - 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. - stmt_
is_ πexpr - struct_
lit_ πcan_ be_ aligned - struct_
lit_ πfield_ separator - to_
control_ πflow - wrap_
struct_ πfield