[src]

Module syntax::attr

Stability

Represents the #deprecated="foo" attributes.

InlineAttr
IntType
ReprAttr
StabilityLevel

The available stability levels.

AttrMetaMethods
AttributeMethods
contains

Check if needle occurs in haystack by a structural comparison. This is slightly subtle, and relies on ignoring the span included in the == comparison a plain MetaItem.

contains_name
find_crateid
find_inline_attr

True if something like #[inline] is found in the list of attrs.

find_linkage_metas

From a list of crate attributes get only the meta_items that affect crate linkage

find_repr_attr

Fold this over attributes to parse #[repr(...)] forms.

find_stability

Find the first stability attribute. None if none exists.

first_attr_value_str_by_name
last_meta_item_value_str_by_name
mk_attr
mk_list_item
mk_name_value_item
mk_name_value_item_str
mk_sugared_doc_attr
mk_word_item
require_unique_names
sort_meta_items
test_cfg

Tests if any cfg(...) meta items in metas match cfg. e.g.