Module utils

Source

Macrosยง

out_of_file_lines_range ๐Ÿ”’
skip_out_of_file_lines_range_err ๐Ÿ”’
skip_out_of_file_lines_range_visitor ๐Ÿ”’
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_contains_single_line_comment ๐Ÿ”’
first_line_ends_with ๐Ÿ”’
first_line_width ๐Ÿ”’
The width of the first line in s.
format_auto ๐Ÿ”’
format_constness ๐Ÿ”’
format_constness_right ๐Ÿ”’
format_coro ๐Ÿ”’
format_defaultness ๐Ÿ”’
format_extern ๐Ÿ”’
format_mutability ๐Ÿ”’
format_safety ๐Ÿ”’
format_visibility ๐Ÿ”’
get_prefix_space_width ๐Ÿ”’
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_attributes_extendable ๐Ÿ”’
is_block_expr ๐Ÿ”’
is_empty_line ๐Ÿ”’
is_same_visibility ๐Ÿ”’
is_single_line ๐Ÿ”’
is_skip ๐Ÿ”’
is_skip_nested ๐Ÿ”’
last_line_contains_single_line_comment ๐Ÿ”’
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 ๐Ÿ”’
remove_trailing_white_spaces ๐Ÿ”’
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 ๐Ÿ”’
trim_left_preserve_layout ๐Ÿ”’
Indent each line according to the specified indent. e.g.
trimmed_last_line_width ๐Ÿ”’
unicode_str_width ๐Ÿ”’
wrap_str ๐Ÿ”’