Macrosยง
- 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_ ๐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 ๐