Macros§
- out_
of_ 🔒file_ lines_ range - skip_
out_ 🔒of_ file_ lines_ range_ err - skip_
out_ 🔒of_ file_ lines_ range_ visitor - source 🔒
Traits§
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 🔒