Module rustfmt_nightly::utils
source ยท Macrosยง
- source ๐
Traitsยง
- NodeIdExt ๐
Functionsยง
- colon_spaces ๐
- contains_skip ๐
- count_lf_crlf ๐Returns the number of LF and CRLF respectively.
- count_newlines ๐
- depr_skip_annotation ๐
- extra_offset ๐
- filter_attributes ๐
- filtered_str_fits ๐
- first_line_ends_with ๐
- first_line_width ๐The width of the first line in s.
- format_auto ๐
- format_constness ๐
- format_coro ๐
- format_defaultness ๐
- format_extern ๐
- format_mutability ๐
- format_safety ๐
- format_visibility ๐
- indent_next_line ๐Based on the given line, determine if the next line can be indented or not. This allows to preserve the indentation of multi-line literals when re-inserted a code block that has been formatted separately from the rest of the code, such as code in macro defs or code blocks doc comments.
- inner_attributes ๐
- is_block_expr ๐
- is_empty_line ๐
- is_same_visibility ๐
- is_single_line ๐
- is_skip ๐
- is_skip_nested ๐
- last_line_extendable ๐
- last_line_used_width ๐The total used width of the last line.
- last_line_width ๐The width of the last line in s.
- left_most_sub_expr ๐
- mk_sp ๐
- mk_sp_lo_plus_one ๐
- outer_attributes ๐
- ptr_vec_to_ref_vec ๐
- Removes trailing spaces from the specified snippet. We do not remove spaces inside strings or comments.
- rewrite_ident ๐
- semicolon_for_expr ๐
- semicolon_for_stmt ๐
- skip_annotation ๐
- starts_with_newline ๐
- stmt_expr ๐
- Indent each line according to the specified
indent. e.g. - unicode_str_width ๐
- wrap_str ๐