Module expr

Source

StructsΒ§

ControlFlow πŸ”’

EnumsΒ§

ExprType πŸ”’
RhsAssignKind πŸ”’
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 πŸ”’