Module attr

Source
Expand description

Format attributes and meta items.

Modules§

doc_comment 🔒

Traits§

MetaVisitor 🔒

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.