Macrosยง
- out_
of_ ๐file_ lines_ range - skip_
out_ ๐of_ file_ lines_ range_ err - skip_
out_ ๐of_ file_ lines_ range_ visitor - source ๐
Traitsยง
- Node
IdExt ๐
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 ๐