Structs§
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