Expand description
Format attributes and meta items.
Modules§
Traits§
Functions§
- argument_
shape 🔒 - attr_
prefix 🔒 - filter_
inline_ 🔒attrs - Returns attributes that are within
outer_span
. - format_
derive 🔒 - get_
attrs_ 🔒from_ stmt - Returns attributes on the given statement.
- get_
span_ 🔒without_ attrs - has_
newlines_ 🔒before_ after_ comment - is_
derive 🔒 - rewrite_
initial_ 🔒doc_ comments - Rewrite the any doc comments which come before any other attributes.
- take_
while_ 🔒with_ pred - Returns the first group of attributes that fills the given predicate. We consider two doc comments are in different group if they are separated by normal comments.